Class to implement the Tool Settings service.
More...
|
|
const | MODE_CURRENT_LEVEL = 1 |
| | Settings at current level mode.
|
| |
|
const | MODE_ALL_LEVELS = 2 |
| | Settings at all levels mode.
|
| |
|
const | MODE_DISTINCT_NAMES = 3 |
| | Settings with distinct names at all levels mode.
|
| |
| bool | $unsigned = false |
| | Whether service request should be sent unsigned.
|
| |
|
|
static | $SCOPE = 'https://purl.imsglobal.org/spec/lti-ts/scope/toolsetting' |
| | Access scope.
|
| |
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()
| __construct |
( |
|
$source, |
|
|
|
$endpoint, |
|
|
|
$simple = true |
|
) |
| |
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()
| mixed get |
( |
|
$mode = self::MODE_CURRENT_LEVEL | ) |
|
Get the tool settings.
- Parameters
-
| int | $mode | Mode for request (optional, default is current level only) |
- Returns
- mixed The array of settings if successful, otherwise false
◆ set()
Set the tool settings.
- Parameters
-
| array | $settings | An associative array of settings (optional, default is null) |
- Returns
- bool True if request was successful
The documentation for this class was generated from the following file: