mirror of
https://github.com/moodle/moodle.git
synced 2025-03-27 19:12:39 +01:00
Added groupid to grade_plugin_return tracking, modified constructor to use query params as defaults if passed-in params not supplied, used groupid tracking in core reports. grade_get_graded_users_select also fixed to use gpr (otherwise using it breaks when course current group has changed between render and submit). Fixed coding style issue in gpr constructor & documented properties. Added upgrade.txt noting gpr changes.
20 lines
963 B
Plaintext
20 lines
963 B
Plaintext
This file describes API changes in /grade/* ;
|
|
Information provided here is intended especially for developers.
|
|
|
|
=== 3.6 ===
|
|
|
|
* The grade_plugin_return constructor now uses parameters from the
|
|
request as defaults, which can be overridden by parameters supplied
|
|
to the constructor. This may lead to a change in behaviour if only
|
|
some of the possible parameters are supplied.
|
|
* The grade_plugin_return class now tracks groupid as well as the
|
|
type, plugin, courseid, userid and page parameters that were tracked
|
|
previously. The groupid parameter will be set using
|
|
groups_get_course_group for the relevant course if the group is
|
|
otherwise unspecified.
|
|
* The above changes mean that code using grade_plugin_return objects
|
|
should generally no longer call groups_get_course_group directly,
|
|
but should use the gpr->groupid parameter instead.
|
|
* The grade_plugin_return constructor now accepts either course or
|
|
courseid as a parameter to specify course.
|