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