Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/grade/constants.php
Go to the documentation of this file.
00001 <?php
00002 
00003 // This file is part of Moodle - http://moodle.org/
00004 //
00005 // Moodle is free software: you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation, either version 3 of the License, or
00008 // (at your option) any later version.
00009 //
00010 // Moodle is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
00026 defined('MOODLE_INTERNAL') || die();
00027 
00028 // category aggregation types
00029 define('GRADE_AGGREGATE_MEAN', 0);
00030 define('GRADE_AGGREGATE_MEDIAN', 2);
00031 define('GRADE_AGGREGATE_MIN', 4);
00032 define('GRADE_AGGREGATE_MAX', 6);
00033 define('GRADE_AGGREGATE_MODE', 8);
00034 define('GRADE_AGGREGATE_WEIGHTED_MEAN', 10);
00035 define('GRADE_AGGREGATE_WEIGHTED_MEAN2', 11);
00036 define('GRADE_AGGREGATE_EXTRACREDIT_MEAN', 12);
00037 define('GRADE_AGGREGATE_SUM', 13);
00038 
00039 // grade types
00040 define('GRADE_TYPE_NONE', 0);
00041 define('GRADE_TYPE_VALUE', 1);
00042 define('GRADE_TYPE_SCALE', 2);
00043 define('GRADE_TYPE_TEXT', 3);
00044 
00045 // grade_update() return status
00046 define('GRADE_UPDATE_OK', 0);
00047 define('GRADE_UPDATE_FAILED', 1);
00048 define('GRADE_UPDATE_MULTIPLE', 2);
00049 define('GRADE_UPDATE_ITEM_DELETED', 3);
00050 define('GRADE_UPDATE_ITEM_LOCKED', 4);
00051 
00052 // Grade tables history tracking actions
00053 define('GRADE_HISTORY_INSERT', 1);
00054 define('GRADE_HISTORY_UPDATE', 2);
00055 define('GRADE_HISTORY_DELETE', 3);
00056 
00057 // Display style constants
00058 define('GRADE_DISPLAY_TYPE_DEFAULT', 0);
00059 define('GRADE_DISPLAY_TYPE_REAL', 1);
00060 define('GRADE_DISPLAY_TYPE_PERCENTAGE', 2);
00061 define('GRADE_DISPLAY_TYPE_LETTER', 3);
00062 define('GRADE_DISPLAY_TYPE_REAL_PERCENTAGE', 12);
00063 define('GRADE_DISPLAY_TYPE_REAL_LETTER', 13);
00064 define('GRADE_DISPLAY_TYPE_LETTER_REAL', 31);
00065 define('GRADE_DISPLAY_TYPE_LETTER_PERCENTAGE', 32);
00066 define('GRADE_DISPLAY_TYPE_PERCENTAGE_LETTER', 23);
00067 define('GRADE_DISPLAY_TYPE_PERCENTAGE_REAL', 21);
00068 
00069 define('GRADE_REPORT_AGGREGATION_POSITION_FIRST', 0);
00070 define('GRADE_REPORT_AGGREGATION_POSITION_LAST', 1);
00071 define('GRADE_REPORT_AGGREGATION_VIEW_FULL', 0);
00072 define('GRADE_REPORT_AGGREGATION_VIEW_AGGREGATES_ONLY', 1);
00073 define('GRADE_REPORT_AGGREGATION_VIEW_GRADES_ONLY', 2);
00074 
00075 //What to do if category or course total contains a hidden item
00076 define('GRADE_REPORT_HIDE_TOTAL_IF_CONTAINS_HIDDEN', 0);//hide the total from students
00077 define('GRADE_REPORT_SHOW_TOTAL_IF_CONTAINS_HIDDEN', 1);//show the total to students minus grades from the hidden items
00078 define('GRADE_REPORT_SHOW_REAL_TOTAL_IF_CONTAINS_HIDDEN', 2);//show students the real total including marks from hidden items
00079 
00080 define('GRADE_REPORT_PREFERENCE_DEFAULT', 'default'); // means use setting from site preferences
00081 define('GRADE_REPORT_PREFERENCE_INHERIT', 'inherit'); // means inherit from parent
00082 define('GRADE_REPORT_PREFERENCE_UNUSED', -1);
00083 
00084 define('GRADE_REPORT_MEAN_ALL', 0);
00085 define('GRADE_REPORT_MEAN_GRADED', 1);
00086 
00087 define('GRADE_NAVMETHOD_DROPDOWN', 0);
00088 define('GRADE_NAVMETHOD_TABS', 1);
00089 define('GRADE_NAVMETHOD_COMBO', 2);
 All Data Structures Namespaces Files Functions Variables Enumerations