Merge branch 'MDL-30937_master' of https://github.com/markn86/moodle
[moodle.git] / grade / report / upgrade.txt
CommitLineData
5df9bc39
AD
1This files describes API changes in /grade/report/*,
2information provided here is intended especially for developers.
3
abbee05e
FM
4=== 2.6.5, 2.7.2 ===
5
6* The callback function grade_report_*_profilereport now takes one more parameter $viewasuser. This parameter
7 is set to true when the report must be viewed as the user whose grades are being displayed. For instance,
8 when a mentor/parent is viewing the report, they should see the same grades, not more, not less. When the
9 setting is set to false (default), the capability checks, visibility and access levels are using the
10 currently logged in user.
11
33564ffb
RT
12=== 2.6 ===
13* grade_report_grader::get_toggles_html() and grade_report_grader::print_toggle()
14 can not be used any more
02d1a0a5
MA
15* class grade_report get_numusers($groups = true, $users = false)
16 An extra parameter has been added to restrict count to those users being
17displayed
18* class grade_report_grader get_left_rows($displayaverages)
19 A parameter has been added to indicate whether averages are applicable and
20should be displayed on the report
21* class grade_report_grader get_right_rows($displayaverages)
22 A parameter has been added to indicate whether averages are applicable and
23should be displayed on the report
24* class grade_report_grader get_grade_table($displayaverages = false)
25 A parameter has been added to indicate whether averages are applicable and
26should be displayed on the report
5df9bc39
AD
27
28=== 2.3.5, 2.4.2 ===
29* class_grade_report::showtotalsifcontainhidden has been switched from a single integer value to an array.
30The array keys are course IDs while the array values are the value of the course setting "report_overview_showtotalsifcontainhidden".