ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
LTI provider for LTI launch. More...
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().
ilLTIToolConsumer::deleteGlobalToolConsumerSettings | ( | ilLTIDataConnector | $dataConnector | ) |
Delete global tool consumer settings.
ilLTIDataConnector | $dataConnector |
Definition at line 292 of file class.ilLTIToolConsumer.php.
References ilLTIDataConnector\deleteGlobalToolConsumerSettings().
|
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(), ilObjLTIAdministration\getActiveObjectTypes(), and ilObjLTIAdministrationGUI\updateLTIConsumer().
|
static |
Load consumer from global settings and ref_id.
type | $a_ext_consumer_id | |
type | $a_ref_id | |
ilLTIDataConnector | $a_data_connector | ilLTIToolConsumer |
Definition at line 263 of file class.ilLTIToolConsumer.php.
References ilLTIDataConnector\lookupRecordIdByGlobalSettingsAndRefId().
Referenced by ilLTIProviderObjectSettingGUI\initObjectSettingsForm(), and ilLTIProviderObjectSettingGUI\updateSettings().
|
static |
Load the tool consumer from the database by its record ID.
int | $id | The consumer key record ID |
DataConnector | $dataConnector | Database connection object |
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 ilAuthProviderLTI\lookupConsumer().
ilLTIToolConsumer::getActive | ( | ) |
Definition at line 181 of file class.ilLTIToolConsumer.php.
Referenced by ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIToolConsumer::getDescription | ( | ) |
Definition at line 108 of file class.ilLTIToolConsumer.php.
References $description.
Referenced by ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIToolConsumer::getEnabled | ( | ) |
Definition at line 208 of file class.ilLTIToolConsumer.php.
References IMSGlobal\LTI\ToolProvider\ToolConsumer\$enabled.
ilLTIToolConsumer::getExtConsumerId | ( | ) |
Definition at line 57 of file class.ilLTIToolConsumer.php.
References $ext_consumer_id.
Referenced by ilAuthProviderLTI\createUser(), ilLTIDataConnector\deleteGlobalToolConsumerSettings(), ilAuthProviderLTI\handleLocalRoleAssignments(), ilLTIDataConnector\loadGlobalToolConsumerSettings(), ilLTIDataConnector\loadObjectToolConsumerSettings(), ilLTIDataConnector\lookupRecordIdByGlobalSettingsAndRefId(), ilLTIDataConnector\saveGlobalToolConsumerSettings(), and ilLTIDataConnector\saveToolConsumerILIAS().
ilLTIToolConsumer::getId | ( | ) |
Definition at line 75 of file class.ilLTIToolConsumer.php.
References IMSGlobal\LTI\ToolProvider\ToolConsumer\getRecordId().
ilLTIToolConsumer::getLanguage | ( | ) |
Definition at line 165 of file class.ilLTIToolConsumer.php.
References $user_language.
Referenced by ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIToolConsumer::getPrefix | ( | ) |
Definition at line 124 of file class.ilLTIToolConsumer.php.
References $prefix.
Referenced by ilAuthProviderLTI\createUser(), and ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIToolConsumer::getRefId | ( | ) |
Definition at line 67 of file class.ilLTIToolConsumer.php.
References $ref_id.
Referenced by ilLTIDataConnector\lookupRecordIdByGlobalSettingsAndRefId(), and ilLTIDataConnector\saveToolConsumerILIAS().
ilLTIToolConsumer::getRole | ( | ) |
Definition at line 197 of file class.ilLTIToolConsumer.php.
References $role.
Referenced by ilAuthProviderLTI\createUser(), ilLTIDataConnector\saveGlobalToolConsumerSettings(), and ilAuthProviderLTI\updateUser().
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.
Referenced by ilLTIDataConnector\saveGlobalToolConsumerSettings(), and ilLTIDataConnector\saveToolConsumerILIAS().
ilLTIToolConsumer::saveGlobalToolConsumerSettings | ( | ilLTIDataConnector | $dataConnector | ) |
Save global consumer settings.
ilLTIDataConnector | $dataConnector |
Definition at line 283 of file class.ilLTIToolConsumer.php.
References ilLTIDataConnector\saveGlobalToolConsumerSettings().
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.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings(), and ilLTIDataConnector\loadObjectToolConsumerSettings().
ilLTIToolConsumer::setDescription | ( | $description | ) |
string | $description |
Definition at line 100 of file class.ilLTIToolConsumer.php.
References $description.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings(), and ilLTIDataConnector\loadObjectToolConsumerSettings().
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.
Referenced by ilLTIDataConnector\loadToolConsumerILIAS(), and ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIToolConsumer::setLanguage | ( | $lang | ) |
string | $lang | (int?) |
Definition at line 157 of file class.ilLTIToolConsumer.php.
References $lang.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings(), and ilLTIDataConnector\loadObjectToolConsumerSettings().
ilLTIToolConsumer::setPrefix | ( | $prefix | ) |
string | $prefix |
Definition at line 116 of file class.ilLTIToolConsumer.php.
References $prefix.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings(), and ilLTIDataConnector\loadObjectToolConsumerSettings().
ilLTIToolConsumer::setRefId | ( | $a_ref_id | ) |
Definition at line 62 of file class.ilLTIToolConsumer.php.
Referenced by ilLTIDataConnector\loadToolConsumerILIAS().
ilLTIToolConsumer::setRole | ( | $role_id | ) |
integer | $role_id |
Definition at line 189 of file class.ilLTIToolConsumer.php.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings(), and ilLTIDataConnector\loadObjectToolConsumerSettings().
ilLTIToolConsumer::setSecret | ( | $secret | ) |
string | $secret |
Definition at line 132 of file class.ilLTIToolConsumer.php.
References IMSGlobal\LTI\ToolProvider\ToolConsumer\$secret.
Referenced by createSecret().
ilLTIToolConsumer::setTitle | ( | $title | ) |
string | $title |
Definition at line 83 of file class.ilLTIToolConsumer.php.
References $title.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings(), and ilLTIDataConnector\loadObjectToolConsumerSettings().
|
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().