|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
LTI provider for LTI launch. More...
Inheritance diagram for ilLTIToolConsumer:
Collaboration diagram for ilLTIToolConsumer:Public Member Functions | |
| setExtConsumerId ($a_id) | |
| getExtConsumerId () | |
| setRefId ($a_ref_id) | |
| getRefId () | |
| getId () | |
| setTitle ($title) | |
| getTitle () | |
| setDescription ($description) | |
| getDescription () | |
| setPrefix ($prefix) | |
| getPrefix () | |
| setSecret ($secret) | |
| getSecret () | |
| createSecret () | |
| Create a secret. More... | |
| setLanguage ($lang) | |
| getLanguage () | |
| setActive ($value) | |
| getActive () | |
| setRole ($role_id) | |
| getRole () | |
| setEnabled ($a_status) | |
| getEnabled () | |
| saveGlobalToolConsumerSettings (ilLTIDataConnector $dataConnector) | |
| Save global consumer settings. More... | |
| deleteGlobalToolConsumerSettings (ilLTIDataConnector $dataConnector) | |
| Delete global tool consumer settings. More... | |
| saveLTI ($dataConnector) | |
| Save the tool consumer to the database with ILIAS extension. More... | |
Public Member Functions inherited from IMSGlobal\LTI\ToolProvider\ToolConsumer | |
| __construct ($key=null, $dataConnector=null, $autoEnable=false) | |
| Class constructor. More... | |
| initialize () | |
| Initialise the tool consumer. More... | |
| initialise () | |
| Initialise the tool consumer. More... | |
| save () | |
| Save the tool consumer to the database. More... | |
| delete () | |
| Delete the tool consumer from the database. More... | |
| getRecordId () | |
| Get the tool consumer record ID. More... | |
| setRecordId ($id) | |
| Sets the tool consumer record ID. More... | |
| getKey () | |
| Get the tool consumer key. More... | |
| setKey ($key) | |
| Set the tool consumer key. More... | |
| getDataConnector () | |
| Get the data connector. More... | |
| getIsAvailable () | |
| Is the consumer key available to accept launch requests? More... | |
| getSetting ($name, $default='') | |
| Get a setting value. More... | |
| setSetting ($name, $value=null) | |
| Set a setting value. More... | |
| getSettings () | |
| Get an array of all setting values. More... | |
| setSettings ($settings) | |
| Set an array of all setting values. More... | |
| saveSettings () | |
| Save setting values. More... | |
| hasToolSettingsService () | |
| Check if the Tool Settings service is supported. More... | |
| getToolSettings ($simple=true) | |
| Get Tool Settings. More... | |
| setToolSettings ($settings=array()) | |
| Perform a Tool Settings service request. More... | |
| signParameters ($url, $type, $version, $params) | |
| Add the OAuth signature to an LTI message. More... | |
| doServiceRequest ($service, $method, $format, $data) | |
| Perform a service request. More... | |
Static Public Member Functions | |
| static | fromRecordId ($id, $dataConnector) |
| Load the tool consumer from the database by its record ID. More... | |
| static | fromExternalConsumerId ($id, $dataConnector) |
| static | fromGlobalSettingsAndRefId ($a_ext_consumer_id, $a_ref_id, ilLTIDataConnector $a_data_connector) |
| Load consumer from global settings and ref_id. More... | |
Static Public Member Functions inherited from IMSGlobal\LTI\ToolProvider\ToolConsumer | |
| static | addSignature ($endpoint, $consumerKey, $consumerSecret, $data, $method='POST', $type=null) |
| Add the OAuth signature to an array of message parameters or to a header string. More... | |
| static | fromRecordId ($id, $dataConnector) |
| Load the tool consumer from the database by its record ID. More... | |
Protected Attributes | |
| $ref_id | |
| $ext_consumer_id = 0 | |
| $title = '' | |
| $description = '' | |
| $prefix = '' | |
| $user_language = '' | |
| $role = 0 | |
Additional Inherited Members | |
Data Fields inherited from IMSGlobal\LTI\ToolProvider\ToolConsumer | |
| $name = null | |
| Local name of tool consumer. More... | |
| $secret = null | |
| Shared secret. More... | |
| $ltiVersion = null | |
| LTI version (as reported by last tool consumer connection). More... | |
| $consumerName = null | |
| Name of tool consumer (as reported by last tool consumer connection). More... | |
| $consumerVersion = null | |
| Tool consumer version (as reported by last tool consumer connection). More... | |
| $consumerGuid = null | |
| Tool consumer GUID (as reported by first tool consumer connection). More... | |
| $cssPath = null | |
| Optional CSS path (as reported by last tool consumer connection). More... | |
| $protected = false | |
| Whether the tool consumer instance is protected by matching the consumer_guid value in incoming requests. More... | |
| $enabled = false | |
| Whether the tool consumer instance is enabled to accept incoming connection requests. More... | |
| $enableFrom = null | |
| Date/time from which the the tool consumer instance is enabled to accept incoming connection requests. More... | |
| $enableUntil = null | |
| Date/time until which the tool consumer instance is enabled to accept incoming connection requests. More... | |
| $lastAccess = null | |
| Date of last connection from this tool consumer. More... | |
| $idScope = ToolProvider::ID_SCOPE_ID_ONLY | |
| Default scope to use when generating an Id value for a user. More... | |
| $defaultEmail = '' | |
| Default email address (or email domain) to use when no email address is provided for a user. More... | |
| $settings = null | |
| Setting values (LTI parameters, custom parameters and local parameters). More... | |
| $created = null | |
| Date/time when the object was created. More... | |
| $updated = null | |
| Date/time when the object was last updated. More... | |
Definition at line 13 of file class.ilLTIToolConsumer.php.
| ilLTIToolConsumer::createSecret | ( | ) |
Create a secret.
Definition at line 149 of file class.ilLTIToolConsumer.php.
References setSecret().
Here is the call graph for this function:| ilLTIToolConsumer::deleteGlobalToolConsumerSettings | ( | ilLTIDataConnector | $dataConnector | ) |
Delete global tool consumer settings.
| ilLTIDataConnector | $dataConnector |
Definition at line 292 of file class.ilLTIToolConsumer.php.
References IMSGlobal\LTI\ToolProvider\ToolConsumer\$dataConnector.
|
static |
| type | $id | |
| type | $dataConnector |
Definition at line 244 of file class.ilLTIToolConsumer.php.
References IMSGlobal\LTI\ToolProvider\ToolConsumer\$dataConnector, and IMSGlobal\LTI\ToolProvider\ToolConsumer\$id.
Referenced by ilObjLTIAdministrationGUI\changeStatusLTIConsumer(), ilObjLTIAdministrationGUI\deleteLTIConsumer(), ilObjLTIAdministrationGUI\editConsumer(), and ilObjLTIAdministrationGUI\updateLTIConsumer().
Here is the caller graph for this function:
|
static |
Load consumer from global settings and ref_id.
| type | $a_ext_consumer_id | |
| type | $a_ref_id | |
| ilLTIDataConnector | $a_data_connector | @retrun ilLTIToolConsumer |
Definition at line 263 of file class.ilLTIToolConsumer.php.
References fromRecordId(), and ilLTIDataConnector\lookupRecordIdByGlobalSettingsAndRefId().
Referenced by ilLTIProviderObjectSettingGUI\initObjectSettingsForm(), and ilLTIProviderObjectSettingGUI\updateSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Load the tool consumer from the database by its record ID.
| int | $id | The consumer key record ID |
| DataConnector | $dataConnector | Database connection object |
Reimplemented from IMSGlobal\LTI\ToolProvider\ToolConsumer.
Definition at line 223 of file class.ilLTIToolConsumer.php.
References IMSGlobal\LTI\ToolProvider\ToolConsumer\$dataConnector, IMSGlobal\LTI\ToolProvider\ToolConsumer\$id, and ilLoggerFactory\getLogger().
Referenced by fromGlobalSettingsAndRefId(), and ilAuthProviderLTI\lookupConsumer().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLTIToolConsumer::getActive | ( | ) |
Definition at line 181 of file class.ilLTIToolConsumer.php.
| ilLTIToolConsumer::getDescription | ( | ) |
Definition at line 108 of file class.ilLTIToolConsumer.php.
References $description.
| ilLTIToolConsumer::getEnabled | ( | ) |
Definition at line 208 of file class.ilLTIToolConsumer.php.
References IMSGlobal\LTI\ToolProvider\ToolConsumer\$enabled.
| ilLTIToolConsumer::getExtConsumerId | ( | ) |
| ilLTIToolConsumer::getId | ( | ) |
Definition at line 75 of file class.ilLTIToolConsumer.php.
References IMSGlobal\LTI\ToolProvider\ToolConsumer\getRecordId().
Here is the call graph for this function:| ilLTIToolConsumer::getLanguage | ( | ) |
Definition at line 165 of file class.ilLTIToolConsumer.php.
References $user_language.
| ilLTIToolConsumer::getPrefix | ( | ) |
Definition at line 124 of file class.ilLTIToolConsumer.php.
References $prefix.
| ilLTIToolConsumer::getRefId | ( | ) |
| ilLTIToolConsumer::getRole | ( | ) |
Definition at line 197 of file class.ilLTIToolConsumer.php.
References $role.
Referenced by ilAuthProviderLTI\updateUser().
Here is the caller graph for this function:| ilLTIToolConsumer::getSecret | ( | ) |
Definition at line 140 of file class.ilLTIToolConsumer.php.
References IMSGlobal\LTI\ToolProvider\ToolConsumer\$secret.
| ilLTIToolConsumer::getTitle | ( | ) |
Definition at line 92 of file class.ilLTIToolConsumer.php.
References $title.
| ilLTIToolConsumer::saveGlobalToolConsumerSettings | ( | ilLTIDataConnector | $dataConnector | ) |
Save global consumer settings.
| ilLTIDataConnector | $dataConnector |
Definition at line 283 of file class.ilLTIToolConsumer.php.
References IMSGlobal\LTI\ToolProvider\ToolConsumer\$dataConnector.
| ilLTIToolConsumer::saveLTI | ( | $dataConnector | ) |
Save the tool consumer to the database with ILIAS extension.
Definition at line 303 of file class.ilLTIToolConsumer.php.
References IMSGlobal\LTI\ToolProvider\ToolConsumer\$dataConnector, and $ok.
| ilLTIToolConsumer::setActive | ( | $value | ) |
| integer | $value |
Definition at line 173 of file class.ilLTIToolConsumer.php.
| ilLTIToolConsumer::setDescription | ( | $description | ) |
| string | $description |
Definition at line 100 of file class.ilLTIToolConsumer.php.
References $description.
| ilLTIToolConsumer::setEnabled | ( | $a_status | ) |
Definition at line 203 of file class.ilLTIToolConsumer.php.
| ilLTIToolConsumer::setExtConsumerId | ( | $a_id | ) |
Definition at line 52 of file class.ilLTIToolConsumer.php.
| ilLTIToolConsumer::setLanguage | ( | $lang | ) |
| string | $lang | (int?) |
Definition at line 157 of file class.ilLTIToolConsumer.php.
References $lang.
| ilLTIToolConsumer::setPrefix | ( | $prefix | ) |
| string | $prefix |
Definition at line 116 of file class.ilLTIToolConsumer.php.
References $prefix.
| ilLTIToolConsumer::setRefId | ( | $a_ref_id | ) |
Definition at line 62 of file class.ilLTIToolConsumer.php.
| ilLTIToolConsumer::setRole | ( | $role_id | ) |
| integer | $role_id |
Definition at line 189 of file class.ilLTIToolConsumer.php.
| ilLTIToolConsumer::setSecret | ( | $secret | ) |
| string | $secret |
Definition at line 132 of file class.ilLTIToolConsumer.php.
References IMSGlobal\LTI\ToolProvider\ToolConsumer\$secret.
Referenced by createSecret().
Here is the caller graph for this function:| ilLTIToolConsumer::setTitle | ( | $title | ) |
| string | $title |
Definition at line 83 of file class.ilLTIToolConsumer.php.
References $title.
|
protected |
Definition at line 34 of file class.ilLTIToolConsumer.php.
Referenced by getDescription(), and setDescription().
|
protected |
Definition at line 24 of file class.ilLTIToolConsumer.php.
Referenced by getExtConsumerId().
|
protected |
Definition at line 39 of file class.ilLTIToolConsumer.php.
Referenced by getPrefix(), and setPrefix().
|
protected |
Definition at line 18 of file class.ilLTIToolConsumer.php.
Referenced by getRefId().
|
protected |
Definition at line 49 of file class.ilLTIToolConsumer.php.
Referenced by getRole().
|
protected |
Definition at line 29 of file class.ilLTIToolConsumer.php.
Referenced by getTitle(), and setTitle().
|
protected |
Definition at line 44 of file class.ilLTIToolConsumer.php.
Referenced by getLanguage().