Merge branch 'MDL-67301-dynreg-squashed' of https://github.com/cengage/moodle

This commit is contained in:
Jun Pataleta 2020-10-26 12:40:31 +08:00
commit 1ec3dda801
26 changed files with 1056 additions and 63 deletions

View file

@ -81,4 +81,13 @@ class basicoutcomes extends \mod_lti\local\ltiservice\service_base {
}
/**
* Get the scope(s) permitted for the tool relevant to this service.
*
* @return array
*/
public function get_scopes() {
return [self::SCOPE_BASIC_OUTCOMES];
}
}

View file

@ -112,6 +112,16 @@ class gradebookservices extends service_base {
}
/**
* Get the scopes defined by this service.
*
* @return array
*/
public function get_scopes() {
return [self::SCOPE_GRADEBOOKSERVICES_LINEITEM_READ, self::SCOPE_GRADEBOOKSERVICES_RESULT_READ,
self::SCOPE_GRADEBOOKSERVICES_SCORE, self::SCOPE_GRADEBOOKSERVICES_LINEITEM];
}
/**
* Adds form elements for gradebook sync add/edit page.
*

View file

@ -102,6 +102,15 @@ class memberships extends \mod_lti\local\ltiservice\service_base {
}
/**
* Get the scope(s) defined by this service.
*
* @return array
*/
public function get_scopes() {
return [self::SCOPE_MEMBERSHIPS_READ];
}
/**
* Get the JSON for members.
*

View file

@ -88,6 +88,15 @@ class toolsettings extends \mod_lti\local\ltiservice\service_base {
}
/**
* Get the scope(s) defined this service.
*
* @return array
*/
public function get_scopes() {
return [self::SCOPE_TOOL_SETTINGS];
}
/**
* Get the distinct settings from each level by removing any duplicates from higher levels.
*