MDL-50524 assign: improve method visibility and upgrade.txt

This commit is contained in:
Dan Poltawski
2015-10-06 16:32:57 +01:00
parent 1a5f8df5c0
commit a059ef2e9f
2 changed files with 11 additions and 1 deletions
+7 -1
View File
@@ -2317,7 +2317,13 @@ class assign {
return $return;
}
private function get_all_groups($userid) {
/**
* Gets all groups the user is a member of.
*
* @param int $userid Teh id of the user who's groups we are checking
* @return array The group objects
*/
protected function get_all_groups($userid) {
if (isset($this->usergroups[$userid])) {
return $this->usergroups[$userid];
}
+4
View File
@@ -1,4 +1,8 @@
This files describes API changes in the assign code.
=== 3.0 ===
* assign_submission_status renderable now requires $usergroups in its constructor
=== 2.9 ===
* External parameter now returns PARAM_RAW instead of PARAM_TEXT for webservices using feedback comments.
* External function mod_assign_external::get_assignments now returns additional optional fields: