Merge branch 'master_MDL-74361-course-restore' of https://github.com/catalyst/moodle...
[moodle.git] / grade / upgrade.txt
blobe0ed9a55bca3a51d241f766f038471753852a7ae
1 This file describes API changes in /grade/* ;
2 Information provided here is intended especially for developers.
4 === 4.0 ===
6 * The select_in_gradebook_tabs() function in behat_grade.php has been deprecated. Please use the function
7   select_in_gradebook_navigation_selector() instead.
8 * The setting $CFG->grade_navmethod setting has been completely removed because it's not required anymore. This setting
9   was used to set the type of navigation (tabs or dropdown box) used in gradebook which is now replaced with tertiary
10   navigation.
11 * The print_grade_plugin_selector() function has been deprecated. This function was used to generate and output the
12   dropdown box navigation in gradebook which is now replaced with tertiary navigation.
13 * The grade_print_tabs() function has been deprecated. This function was used to generate and output the tabs navigation
14   in gradebook which is now replaced with tertiary navigation.
15 * There is a new callback inside of grade_get_plugin_info called extend_gradebook_plugininfo
16   which allows for new tabs to be added to the gradebook.
18 === 3.7 ===
20 * The grade_cron() function has been removed. Please use grade_history_cleanup_task and grade_cron_task scheduled tasks instead.
22 === 3.6 ===
24 * The grade_plugin_return constructor now uses parameters from the
25   request as defaults, which can be overridden by parameters supplied
26   to the constructor. This may lead to a change in behaviour if only
27   some of the possible parameters are supplied.
28 * The grade_plugin_return class now tracks groupid as well as the
29   type, plugin, courseid, userid and page parameters that were tracked
30   previously. The groupid parameter will be set using
31   groups_get_course_group for the relevant course if the group is
32   otherwise unspecified.
33 * The above changes mean that code using grade_plugin_return objects
34   should generally no longer call groups_get_course_group directly,
35   but should use the gpr->groupid parameter instead.
36 * The grade_plugin_return constructor now accepts either course or
37   courseid as a parameter to specify course.