Class to implement context services for a platform via its proprietary API.
More...
Class to implement context services for a platform via its proprietary API.
- Author
- Stephen P Vickers steph.nosp@m.en@s.nosp@m.pvsof.nosp@m.twar.nosp@m.eprod.nosp@m.ucts.nosp@m..com
- Copyright
- SPV Software Products
- Licence: http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3
◆ __construct()
◆ getGroups()
◆ getMemberships()
array bool getMemberships |
( |
bool | $withGroups | ) |
|
Get Memberships.
- Parameters
-
bool | $withGroups | True is group information is to be requested as well |
- Returns
- array|bool The array of UserResult objects if successful, otherwise false
Reimplemented in CanvasApiContext, and MoodleApiContext.
◆ getToolSettings()
array bool getToolSettings |
( |
?ToolSettingsMode | $mode = null, |
|
|
bool | $simple = true ) |
Get Tool Settings.
- Parameters
-
ToolSettingsMode | null | $mode | Mode for request (optional, default is current level only) |
bool | $simple | True if all the simple media type is to be used (optional, default is true) |
- Returns
- array|bool The array of settings if successful, otherwise false
◆ isConfigured()
Check if the API hook has been configured.
- Returns
- bool True if the API hook has been configured
◆ setToolSettings()
bool setToolSettings |
( |
array | $settings = [] | ) |
|
Perform a Tool Settings service request.
- Parameters
-
array | $settings | An associative array of settings (optional, default is none) |
- Returns
- bool True if action was successful, otherwise false