ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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... | |
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... | |
Protected Attributes | |
$ref_id | |
$ext_consumer_id = 0 | |
$title = '' | |
$description = '' | |
$prefix = '' | |
$user_language = '' | |
$role = 0 | |
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.
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 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.
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.
ilLTIToolConsumer::getLanguage | ( | ) |
Definition at line 165 of file class.ilLTIToolConsumer.php.
References $user_language.
Referenced by ilAuthProviderLTI\createUser(), and 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.
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 $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.
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().