Class to implement Context services for a Moodle platform via its web services. More...
Inheritance diagram for ceLTIc\LTI\ApiHook\moodle\MoodleApiContext:Public Member Functions | |
| __construct (Context $context) | |
| Class constructor. | |
| bool | getGroups () |
| Get course group sets and groups. | |
| array bool | getMemberships (bool $withGroups=false) |
| Get Memberships. | |
Public Member Functions inherited from ceLTIc\LTI\ApiHook\ApiContext | |
| 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. | |
Public Member Functions inherited from ceLTIc\LTI\ApiHook\moodle\MoodleApi | |
| bool | isConfigured () |
| Check if the API hook has been configured. | |
Additional Inherited Members | |
Protected Attributes inherited from ceLTIc\LTI\ApiHook\ApiContext | |
| Context | $context |
| Context object. | |
Class to implement Context services for a Moodle platform via its web services.
| ceLTIc\LTI\ApiHook\moodle\MoodleApiContext::__construct | ( | Context | $context | ) |
| bool ceLTIc\LTI\ApiHook\moodle\MoodleApiContext::getGroups | ( | ) |
Get course group sets and groups.
Reimplemented from ceLTIc\LTI\ApiHook\ApiContext.
| array bool ceLTIc\LTI\ApiHook\moodle\MoodleApiContext::getMemberships | ( | bool | $withGroups = false | ) |
Get Memberships.
| bool | $withGroups | True is group information is to be requested as well |
Reimplemented from ceLTIc\LTI\ApiHook\ApiContext.