mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
Merge branch 'MDL-67301-dynreg-squashed' of https://github.com/cengage/moodle
This commit is contained in:
commit
1ec3dda801
26 changed files with 1056 additions and 63 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue