From ceea52abf60f8bad7f8f5b1ecc3b9da41f8fbc6d Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Mon, 11 Aug 2014 13:28:23 +0800 Subject: [PATCH] MDL-35984 Grades: Fix deprecation of grade_category::aggregate_values --- grade/report/lib.php | 2 +- lib/grade/grade_category.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/grade/report/lib.php b/grade/report/lib.php index 0e85fd1622d..dc18c9ca493 100644 --- a/grade/report/lib.php +++ b/grade/report/lib.php @@ -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 diff --git a/lib/grade/grade_category.php b/lib/grade/grade_category.php index 0b69be925d6..f64a0bbcc39 100644 --- a/lib/grade/grade_category.php +++ b/lib/grade/grade_category.php @@ -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