MDL-35984 Grades: Fix deprecation of grade_category::aggregate_values

This commit is contained in:
Damyon Wiese
2014-08-11 14:24:37 +08:00
parent 1285dadea3
commit ceea52abf6
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -445,7 +445,7 @@ abstract class grade_report {
/**
* Optionally blank out course/category totals if they contain any hidden items
* @deprecated since Moodle 2.8 - Call blank_hidden_total_and_adjust_bounds instead.
* Will be deprecated in Moodle 2.8 - Call blank_hidden_total_and_adjust_bounds instead.
* @param string $courseid the course id
* @param string $course_item an instance of grade_item
* @param string $finalgrade the grade for the course_item
+2 -1
View File
@@ -635,6 +635,7 @@ class grade_category extends grade_object {
*
* @param array $grade_values An array of values to be aggregated
* @param array $items The array of grade_items
* @since Moodle 2.6.5, 2.7.2
* @return array containing values for:
* 'grade' => the new calculated grade
* 'grademin' => the new calculated min grade for the category
@@ -789,7 +790,7 @@ class grade_category extends grade_object {
*
* Must be public as it is used by grade_grade::get_hiding_affected()
*
* @deprecated since Moodle 2.8
* Will be deprecated in Moodle 2.8
* @param array $grade_values An array of values to be aggregated
* @param array $items The array of grade_items
* @return float The aggregate grade for this grade category