Class to implement the Tool Settings service.
More...
|
const | MEDIA_TYPE_TOOL_SETTINGS = 'application/vnd.ims.lti.v2.toolsettings+json' |
| Media type for tool settings service.
|
|
const | MEDIA_TYPE_TOOL_SETTINGS_SIMPLE = 'application/vnd.ims.lti.v2.toolsettings.simple+json' |
| Media type for tool settings simple service.
|
|
bool | $unsigned = false |
| Whether service request should be sent unsigned.
|
|
|
static string | $SCOPE = 'https://purl.imsglobal.org/spec/lti-ts/scope/toolsetting' |
| Access scope.
|
|
|
array | parseContextsInArray (object|array $contexts, array $arr) |
| Parse the JSON for context references.
|
|
string | $endpoint = null |
| Service endpoint.
|
|
string | $scope = null |
| Service access scope.
|
|
string | $mediaType = null |
| Media type of message body.
|
|
Class to implement the Tool Settings service.
- 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()
Class constructor.
- Parameters
-
Platform | Context | ResourceLink | $source | The object to which the settings apply (ResourceLink, Context or Platform) |
string | $endpoint | Service endpoint |
bool | $simple | True if the simple media type is to be used (optional, default is true) |
◆ get()
array bool ceLTIc\LTI\Service\ToolSettings::get |
( |
?ToolSettingsMode | $mode = null | ) |
|
Get the tool settings.
- Parameters
-
ToolSettingsMode | null | $mode | Mode for request (optional, default is current level only) |
- Returns
- array|bool The array of settings if successful, otherwise false
◆ set()
bool ceLTIc\LTI\Service\ToolSettings::set |
( |
array | $settings | ) |
|
◆ $SCOPE
string ceLTIc\LTI\Service\ToolSettings::$SCOPE = 'https://purl.imsglobal.org/spec/lti-ts/scope/toolsetting' |
|
static |
◆ MEDIA_TYPE_TOOL_SETTINGS
const ceLTIc\LTI\Service\ToolSettings::MEDIA_TYPE_TOOL_SETTINGS = 'application/vnd.ims.lti.v2.toolsettings+json' |
Media type for tool settings service.
◆ MEDIA_TYPE_TOOL_SETTINGS_SIMPLE
const ceLTIc\LTI\Service\ToolSettings::MEDIA_TYPE_TOOL_SETTINGS_SIMPLE = 'application/vnd.ims.lti.v2.toolsettings.simple+json' |
Media type for tool settings simple service.