Automatic installer.php lang files by installer_builder (20081215)
[moodle.git] / lib / grade / constants.php
blob6852a1e5d4c3188490b12427be888e80d79b88ef
1 <?php // $Id$
3 ///////////////////////////////////////////////////////////////////////////
4 // NOTICE OF COPYRIGHT //
5 // //
6 // Moodle - Modular Object-Oriented Dynamic Learning Environment //
7 // http://moodle.org //
8 // //
9 // Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
10 // //
11 // This program is free software; you can redistribute it and/or modify //
12 // it under the terms of the GNU General Public License as published by //
13 // the Free Software Foundation; either version 2 of the License, or //
14 // (at your option) any later version. //
15 // //
16 // This program is distributed in the hope that it will be useful, //
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
19 // GNU General Public License for more details: //
20 // //
21 // http://www.gnu.org/copyleft/gpl.html //
22 // //
23 ///////////////////////////////////////////////////////////////////////////
26 /**
27 * Definitions of constants for gradebook
29 * @author Moodle HQ developers
30 * @version $Id$
31 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
32 * @package moodlecore
35 // category aggregation types
36 define('GRADE_AGGREGATE_MEAN', 0);
37 define('GRADE_AGGREGATE_MEDIAN', 2);
38 define('GRADE_AGGREGATE_MIN', 4);
39 define('GRADE_AGGREGATE_MAX', 6);
40 define('GRADE_AGGREGATE_MODE', 8);
41 define('GRADE_AGGREGATE_WEIGHTED_MEAN', 10);
42 define('GRADE_AGGREGATE_WEIGHTED_MEAN2', 11);
43 define('GRADE_AGGREGATE_EXTRACREDIT_MEAN', 12);
44 define('GRADE_AGGREGATE_SUM', 13);
46 // grade types
47 define('GRADE_TYPE_NONE', 0);
48 define('GRADE_TYPE_VALUE', 1);
49 define('GRADE_TYPE_SCALE', 2);
50 define('GRADE_TYPE_TEXT', 3);
52 // grade_update() return status
53 define('GRADE_UPDATE_OK', 0);
54 define('GRADE_UPDATE_FAILED', 1);
55 define('GRADE_UPDATE_MULTIPLE', 2);
56 define('GRADE_UPDATE_ITEM_DELETED', 3);
57 define('GRADE_UPDATE_ITEM_LOCKED', 4);
59 // Grate teables history tracking actions
60 define('GRADE_HISTORY_INSERT', 1);
61 define('GRADE_HISTORY_UPDATE', 2);
62 define('GRADE_HISTORY_DELETE', 3);
64 // Display style constants
65 define('GRADE_DISPLAY_TYPE_DEFAULT', 0);
66 define('GRADE_DISPLAY_TYPE_REAL', 1);
67 define('GRADE_DISPLAY_TYPE_PERCENTAGE', 2);
68 define('GRADE_DISPLAY_TYPE_LETTER', 3);
70 define('GRADE_REPORT_AGGREGATION_POSITION_FIRST', 0);
71 define('GRADE_REPORT_AGGREGATION_POSITION_LAST', 1);
72 define('GRADE_REPORT_AGGREGATION_VIEW_FULL', 0);
73 define('GRADE_REPORT_AGGREGATION_VIEW_AGGREGATES_ONLY', 1);
74 define('GRADE_REPORT_AGGREGATION_VIEW_GRADES_ONLY', 2);
76 define('GRADE_REPORT_PREFERENCE_DEFAULT', 'default'); // means use setting from site preferences
77 define('GRADE_REPORT_PREFERENCE_INHERIT', 'inherit'); // means inherit from parent
78 define('GRADE_REPORT_PREFERENCE_UNUSED', -1);
80 define('GRADE_REPORT_MEAN_ALL', 0);
81 define('GRADE_REPORT_MEAN_GRADED', 1);