MDL-11517 reserved word MOD used in table alias in questions backup code
[moodle-pu.git] / lib / grade / constants.php
blobb56b0f33d8253eec9fe3485630f728eda3f3355c
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_EXTRACREDIT_MEAN', 12);
44 // grade types
45 define('GRADE_TYPE_NONE', 0);
46 define('GRADE_TYPE_VALUE', 1);
47 define('GRADE_TYPE_SCALE', 2);
48 define('GRADE_TYPE_TEXT', 3);
50 // grade_update() return status
51 define('GRADE_UPDATE_OK', 0);
52 define('GRADE_UPDATE_FAILED', 1);
53 define('GRADE_UPDATE_MULTIPLE', 2);
54 define('GRADE_UPDATE_ITEM_DELETED', 3);
55 define('GRADE_UPDATE_ITEM_LOCKED', 4);
57 // Grate teables history tracking actions
58 define('GRADE_HISTORY_INSERT', 1);
59 define('GRADE_HISTORY_UPDATE', 2);
60 define('GRADE_HISTORY_DELETE', 3);
62 // Display style constants
63 define('GRADE_DISPLAY_TYPE_DEFAULT', 0);
64 define('GRADE_DISPLAY_TYPE_REAL', 1);
65 define('GRADE_DISPLAY_TYPE_PERCENTAGE', 2);
66 define('GRADE_DISPLAY_TYPE_LETTER', 3);
68 define('GRADE_REPORT_AGGREGATION_POSITION_LEFT', 0);
69 define('GRADE_REPORT_AGGREGATION_POSITION_RIGHT', 1);
70 define('GRADE_REPORT_AGGREGATION_VIEW_FULL', 0);
71 define('GRADE_REPORT_AGGREGATION_VIEW_AGGREGATES_ONLY', 1);
72 define('GRADE_REPORT_AGGREGATION_VIEW_GRADES_ONLY', 2);
73 define('GRADE_REPORT_PREFERENCE_DEFAULT', 'default');
74 define('GRADE_REPORT_PREFERENCE_INHERIT', 'inherit');
75 define('GRADE_REPORT_PREFERENCE_UNUSED', -1);
76 define('GRADE_REPORT_MEAN_ALL', 0);
77 define('GRADE_REPORT_MEAN_GRADED', 1);