Class to implement Context services for a Moodle platform via its web services. More...
Public Member Functions | |
__construct (Context $context) | |
Class constructor. | |
bool | getGroups () |
Get course group sets and groups. | |
array bool | getMemberships (bool $withGroups=false) |
Get Memberships. | |
![]() | |
bool | isConfigured () |
Check if the API hook has been configured. | |
array bool | getToolSettings (?ToolSettingsMode $mode=null, bool $simple=true) |
Get Tool Settings. | |
bool | setToolSettings (array $settings=[]) |
Perform a Tool Settings service request. | |
![]() | |
bool | isConfigured () |
Check if the API hook has been configured. | |
Additional Inherited Members | |
![]() | |
Context | $context |
Context object. | |
Class to implement Context services for a Moodle platform via its web services.
__construct | ( | Context | $context | ) |
bool getGroups | ( | ) |
Get course group sets and groups.
Reimplemented from ApiContext.
array bool getMemberships | ( | bool | $withGroups = false | ) |
Get Memberships.
bool | $withGroups | True is group information is to be requested as well |
Reimplemented from ApiContext.