weekly release 2.9dev
[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
9112aac1 4=== 2.8.2 ===
aac66bef
SL
5* gradereport_singleview::__construct doesn't need groupid parameter anymore, so it was renamed to $unused.
6
abbee05e
FM
7=== 2.6.5, 2.7.2 ===
8
9* The callback function grade_report_*_profilereport now takes one more parameter $viewasuser. This parameter
10 is set to true when the report must be viewed as the user whose grades are being displayed. For instance,
11 when a mentor/parent is viewing the report, they should see the same grades, not more, not less. When the
12 setting is set to false (default), the capability checks, visibility and access levels are using the
13 currently logged in user.
14
33564ffb
RT
15=== 2.6 ===
16* grade_report_grader::get_toggles_html() and grade_report_grader::print_toggle()
17 can not be used any more
02d1a0a5
MA
18* class grade_report get_numusers($groups = true, $users = false)
19 An extra parameter has been added to restrict count to those users being
20displayed
21* class grade_report_grader get_left_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_right_rows($displayaverages)
25 A parameter has been added to indicate whether averages are applicable and
26should be displayed on the report
27* class grade_report_grader get_grade_table($displayaverages = false)
28 A parameter has been added to indicate whether averages are applicable and
29should be displayed on the report
5df9bc39
AD
30
31=== 2.3.5, 2.4.2 ===
32* class_grade_report::showtotalsifcontainhidden has been switched from a single integer value to an array.
33The array keys are course IDs while the array values are the value of the course setting "report_overview_showtotalsifcontainhidden".