define('GRADE_HISTORY_DELETE', 3);
// Display style constants
+
+/**
+ * GRADE_DISPLAY_TYPE_DEFAULT - Grade display type can be set at 3 levels: grade_item, course setting and site. Use the display type from the higher level.
+ */
define('GRADE_DISPLAY_TYPE_DEFAULT', 0);
+
+/**
+ * GRADE_DISPLAY_TYPE_REAL - Display the grade as a decimal number.
+ */
define('GRADE_DISPLAY_TYPE_REAL', 1);
+
+/**
+ * GRADE_DISPLAY_TYPE_PERCENTAGE - Display the grade as a percentage.
+ */
define('GRADE_DISPLAY_TYPE_PERCENTAGE', 2);
+
+/**
+ * GRADE_DISPLAY_TYPE_LETTER - Display the grade as a letter grade. For example, A, B, C, D or F.
+ */
define('GRADE_DISPLAY_TYPE_LETTER', 3);
+
+/**
+ * GRADE_DISPLAY_TYPE_REAL_PERCENTAGE - Display the grade as a decimal number and a percentage.
+ */
define('GRADE_DISPLAY_TYPE_REAL_PERCENTAGE', 12);
+
+/**
+ * GRADE_DISPLAY_TYPE_REAL_LETTER - Display the grade as a decimal number and a letter grade.
+ */
define('GRADE_DISPLAY_TYPE_REAL_LETTER', 13);
+
+/**
+ * GRADE_DISPLAY_TYPE_LETTER_REAL - Display the grade as a letter grade and a decimal number.
+ */
define('GRADE_DISPLAY_TYPE_LETTER_REAL', 31);
+
+/**
+ * GRADE_DISPLAY_TYPE_LETTER_PERCENTAGE - Display the grade as a letter grade and a percentage.
+ */
define('GRADE_DISPLAY_TYPE_LETTER_PERCENTAGE', 32);
+
+/**
+ * GRADE_DISPLAY_TYPE_PERCENTAGE_LETTER - Display the grade as a percentage and a letter grade.
+ */
define('GRADE_DISPLAY_TYPE_PERCENTAGE_LETTER', 23);
+
+/**
+ * GRADE_DISPLAY_TYPE_PERCENTAGE_REAL - Display the grade as a percentage and a decimal number.
+ */
define('GRADE_DISPLAY_TYPE_PERCENTAGE_REAL', 21);
+/**
+ * GRADE_REPORT_AGGREGATION_POSITION_FIRST - Display the course totals before the individual activity grades
+ */
define('GRADE_REPORT_AGGREGATION_POSITION_FIRST', 0);
+
+/**
+ * GRADE_REPORT_AGGREGATION_POSITION_LAST - Display the course totals after the individual activity grades
+ */
define('GRADE_REPORT_AGGREGATION_POSITION_LAST', 1);
- // These constants dont seem to be in use (MDL-31363)
- define('GRADE_REPORT_AGGREGATION_VIEW_FULL', 0);
- define('GRADE_REPORT_AGGREGATION_VIEW_AGGREGATES_ONLY', 1);
- define('GRADE_REPORT_AGGREGATION_VIEW_GRADES_ONLY', 2);
-
-//What to do if category or course total contains a hidden item
-define('GRADE_REPORT_HIDE_TOTAL_IF_CONTAINS_HIDDEN', 0);//hide the total from students
-define('GRADE_REPORT_SHOW_TOTAL_IF_CONTAINS_HIDDEN', 1);//show the total to students minus grades from the hidden items
-define('GRADE_REPORT_SHOW_REAL_TOTAL_IF_CONTAINS_HIDDEN', 2);//show students the real total including marks from hidden items
+// What to do if category or course total contains a hidden item
+
+/**
+ * GRADE_REPORT_HIDE_TOTAL_IF_CONTAINS_HIDDEN - If the category or course total contains a hidden item hide the total from students.
+ */
+define('GRADE_REPORT_HIDE_TOTAL_IF_CONTAINS_HIDDEN', 0);
+
+/**
+ * GRADE_REPORT_SHOW_TOTAL_IF_CONTAINS_HIDDEN - If the category or course total contains a hidden item show the total to students minus grades from the hidden items.
+ */
+define('GRADE_REPORT_SHOW_TOTAL_IF_CONTAINS_HIDDEN', 1);
-define('GRADE_REPORT_PREFERENCE_DEFAULT', 'default'); // means use setting from site preferences
+/**
+ * GRADE_REPORT_SHOW_REAL_TOTAL_IF_CONTAINS_HIDDEN - If the category or course total contains a hidden item show students the real total including marks from hidden items.
+ */
+define('GRADE_REPORT_SHOW_REAL_TOTAL_IF_CONTAINS_HIDDEN', 2);
+
+/**
+ * GRADE_REPORT_PREFERENCE_DEFAULT - Use the setting from site preferences.
+ */
+define('GRADE_REPORT_PREFERENCE_DEFAULT', 'default');
+
+/**
+ * GRADE_REPORT_PREFERENCE_INHERIT - Inherit the setting value from the parent.
+ */
define('GRADE_REPORT_PREFERENCE_INHERIT', 'inherit'); // means inherit from parent
+
+/**
+ * GRADE_REPORT_PREFERENCE_UNUSED - Unused constant.
+ */
define('GRADE_REPORT_PREFERENCE_UNUSED', -1);
+/**
+ * GRADE_REPORT_MEAN_ALL - Include all grade items including those where the student hasn't received a grade when calculating the mean.
+ */
define('GRADE_REPORT_MEAN_ALL', 0);
+
+/**
+ * GRADE_REPORT_MEAN_GRADED - Only include grade items where the student has a grade when calculating the mean.
+ */
define('GRADE_REPORT_MEAN_GRADED', 1);
+/**
+ * GRADE_NAVMETHOD_DROPDOWN - Display a drop down box to allow navigation within the gradebook
+ */
define('GRADE_NAVMETHOD_DROPDOWN', 0);
+
+/**
+ * GRADE_NAVMETHOD_TABS - Display tabs to allow navigation within the gradebook
+ */
define('GRADE_NAVMETHOD_TABS', 1);
+
+/**
+ * GRADE_NAVMETHOD_TABS - Display both a drop down and tabs to allow navigation within the gradebook
+ */
define('GRADE_NAVMETHOD_COMBO', 2);