![]() |
LTI Integration Library
3.1.0
PHP class library for building LTI integrations
|
Class to implement context services for a tool consumer via its proprietary API. More...
Public Member Functions | |
| __construct ($context) | |
| Class constructor. More... | |
| getMemberships ($withGroups) | |
| Get Memberships. More... | |
| getToolSettings ($mode=Service\ToolSettings::MODE_CURRENT_LEVEL, $simple=true) | |
| Get Tool Settings. More... | |
| setToolSettings ($settings=array()) | |
| Perform a Tool Settings service request. More... | |
Protected Attributes | |
| $context = null | |
| Context object. More... | |
Class to implement context services for a tool consumer via its proprietary API.
Definition at line 13 of file ApiContext.php.
| __construct | ( | $context | ) |
Class constructor.
| \ceLTIc\LTI\Context | $context |
Definition at line 28 of file ApiContext.php.
References ApiContext\$context.
| getMemberships | ( | $withGroups | ) |
Get Memberships.
| bool | $withGroups | True is group information is to be requested as well |
Definition at line 40 of file ApiContext.php.
| getToolSettings | ( | $mode = Service\ToolSettings::MODE_CURRENT_LEVEL, |
|
$simple = true |
|||
| ) |
Get Tool Settings.
| int | $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) |
Definition at line 53 of file ApiContext.php.
| setToolSettings | ( | $settings = array() | ) |
Perform a Tool Settings service request.
| array | $settings | An associative array of settings (optional, default is none) |
Definition at line 65 of file ApiContext.php.
|
protected |
Context object.
Definition at line 21 of file ApiContext.php.
Referenced by ApiContext\__construct(), MoodleApiContext\getMemberships(), and CanvasApiContext\getMemberships().