ILIAS
release_8 Revision v8.23
|
LTI provider for LTI launch. More...
Public Member Functions | |
__construct (ilLTIDataConnector $dataConnector=null) | |
Class constructor. More... | |
initialize () | |
Initialise the platform. More... | |
setExtConsumerId (int $a_id) | |
getExtConsumerId () | |
setRefId (int $a_ref_id) | |
getRefId () | |
setTitle (string $title) | |
getTitle () | |
setDescription (string $description) | |
getDescription () | |
setPrefix (string $prefix) | |
getPrefix () | |
setSecret (string $secret) | |
getSecret () | |
createSecret () | |
Create a secret. More... | |
setLanguage (string $lang) | |
getLanguage () | |
setActive (bool $value) | |
getActive () | |
setRole (int $role_id) | |
getRole () | |
setEnabled (bool $a_status) | |
getEnabled () | |
saveGlobalToolConsumerSettings (ilLTIDataConnector $dataConnector) | |
Save global consumer settings. More... | |
deleteGlobalToolConsumerSettings (ilLTIDataConnector $dataConnector) | |
Delete global tool consumer settings. More... | |
saveLTI (ilLTIDataConnector $dataConnector) | |
Save the tool consumer to the database with ILIAS extension. More... | |
Static Public Member Functions | |
static | fromPlatformId (string $platformId, string $clientId, string $deploymentId, ilLTIDataConnector $dataConnector=null, bool $autoEnable=false) |
Load the platform from the database by its platform, client and deployment IDs. More... | |
static | fromConsumerKey (?string $key=null, $dataConnector=null, bool $autoEnable=false) |
Load the platform from the database by its consumer key. More... | |
static | fromRecordId (int $id, ilLTIDataConnector $dataConnector) |
Load the platform from the database by its record ID. More... | |
static | fromExternalConsumerId (int $id, ilLTIDataConnector $dataConnector) |
static | fromGlobalSettingsAndRefId (int $a_ext_consumer_id, int $a_ref_id, ilLTIDataConnector $a_data_connector) |
Load consumer from global settings and ref_id. More... | |
Protected Attributes | |
int | $ref_id = 0 |
int | $ext_consumer_id = 0 |
string | $title = '' |
string | $description = '' |
string | $prefix = '' |
string | $user_language = '' |
int | $role = 0 |
bool | $active = false |
Private Attributes | |
array | $settings = null |
Setting values (LTI parameters, custom parameters and local parameters). More... | |
int | $id = null |
System ID value. More... | |
string | $key = null |
Consumer key/client ID value. More... | |
Definition at line 35 of file class.ilLTIPlatform.php.
ilLTIPlatform::__construct | ( | ilLTIDataConnector | $dataConnector = null | ) |
Class constructor.
ilLTIDataConnector | null | $dataConnector | A data connector object |
Definition at line 102 of file class.ilLTIPlatform.php.
References ILIAS\LTI\ToolProvider\$dataConnector, ilLTIDataConnector\getDataConnector(), and initialize().
ilLTIPlatform::createSecret | ( | ) |
Create a secret.
Definition at line 221 of file class.ilLTIPlatform.php.
References setSecret().
ilLTIPlatform::deleteGlobalToolConsumerSettings | ( | ilLTIDataConnector | $dataConnector | ) |
Delete global tool consumer settings.
ilLTIDataConnector | $dataConnector |
Definition at line 382 of file class.ilLTIPlatform.php.
References ilLTIDataConnector\deleteGlobalToolConsumerSettings().
|
static |
Load the platform from the database by its consumer key.
string | $key | Consumer key |
ilLTIDataConnector | $dataConnector | A data connector object |
bool | $autoEnable | true if the platform is to be enabled automatically (optional, default is false) |
Definition at line 300 of file class.ilLTIPlatform.php.
References ILIAS\LTI\ToolProvider\$dataConnector, ilLoggerFactory\getLogger(), ilLTIDataConnector\loadGlobalToolConsumerSettings(), and ilLTIDataConnector\loadPlatform().
Referenced by ILIAS\LTI\ToolProvider\parseMessage().
|
static |
int | $id | |
ilLTIDataConnector | $dataConnector |
Definition at line 334 of file class.ilLTIPlatform.php.
References ilLTIDataConnector\loadGlobalToolConsumerSettings().
Referenced by ilObjLTIAdministrationGUI\changeStatusLTIConsumer(), ilObjLTIAdministrationGUI\deleteLTIConsumer(), ilObjLTIAdministrationGUI\editConsumer(), ilObjLTIAdministration\getActiveObjectTypes(), and ilObjLTIAdministrationGUI\updateLTIConsumer().
|
static |
Load consumer from global settings and ref_id.
int | $a_ext_consumer_id | |
int | $a_ref_id | |
ilLTIDataConnector | $a_data_connector |
Definition at line 354 of file class.ilLTIPlatform.php.
References ilLTIDataConnector\lookupRecordIdByGlobalSettingsAndRefId().
Referenced by ilLTIProviderObjectSettingGUI\initObjectSettingsForm(), and ilLTIProviderObjectSettingGUI\updateSettings().
|
static |
Load the platform from the database by its platform, client and deployment IDs.
string | $platformId | The platform ID |
string | $clientId | The client ID |
string | $deploymentId | The deployment ID |
ilLTIDataConnector | $dataConnector | A data connector object |
bool | $autoEnable | True if the platform is to be enabled automatically (optional, default is false) |
Definition at line 281 of file class.ilLTIPlatform.php.
References $clientId, ILIAS\LTI\ToolProvider\$dataConnector, ilLTIDataConnector\loadGlobalToolConsumerSettings(), and ilLTIDataConnector\loadPlatform().
Referenced by ILIAS\LTI\ToolProvider\parseMessage(), and ILIAS\LTI\ToolProvider\Tool\sendAuthenticationRequest().
|
static |
Load the platform from the database by its record ID.
int | $id | The platform record ID |
ilLTIDataConnector | $dataConnector | Database connection object |
Definition at line 317 of file class.ilLTIPlatform.php.
References ilLoggerFactory\getLogger(), ilLTIDataConnector\loadGlobalToolConsumerSettings(), and ilLTIDataConnector\loadPlatform().
Referenced by ILIAS\LTI\ToolProvider\Context\getPlatform(), and ilAuthProviderLTI\lookupConsumer().
ilLTIPlatform::getActive | ( | ) |
Definition at line 244 of file class.ilLTIPlatform.php.
References $active.
Referenced by ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIPlatform::getDescription | ( | ) |
Definition at line 193 of file class.ilLTIPlatform.php.
References $description.
Referenced by ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIPlatform::getEnabled | ( | ) |
Definition at line 265 of file class.ilLTIPlatform.php.
References ILIAS\LTI\ToolProvider\$enabled.
ilLTIPlatform::getExtConsumerId | ( | ) |
Definition at line 157 of file class.ilLTIPlatform.php.
References $ext_consumer_id.
Referenced by ilAuthProviderLTI\createUser(), ilLTIDataConnector\deleteGlobalToolConsumerSettings(), ilAuthProviderLTI\handleLocalRoleAssignments(), ilLTIDataConnector\loadGlobalToolConsumerSettings(), ilLTIDataConnector\lookupRecordIdByGlobalSettingsAndRefId(), ilLTIDataConnector\saveGlobalToolConsumerSettings(), and ilLTIDataConnector\saveToolConsumerILIAS().
ilLTIPlatform::getLanguage | ( | ) |
Definition at line 234 of file class.ilLTIPlatform.php.
References $user_language.
Referenced by ilAuthProviderLTI\createUser(), and ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIPlatform::getPrefix | ( | ) |
Definition at line 203 of file class.ilLTIPlatform.php.
References $prefix.
Referenced by ilAuthProviderLTI\createUser(), and ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIPlatform::getRefId | ( | ) |
Definition at line 167 of file class.ilLTIPlatform.php.
References $ref_id.
Referenced by ilLTIDataConnector\lookupRecordIdByGlobalSettingsAndRefId(), and ilLTIDataConnector\saveToolConsumerILIAS().
ilLTIPlatform::getRole | ( | ) |
Definition at line 254 of file class.ilLTIPlatform.php.
References $role.
Referenced by ilAuthProviderLTI\createUser(), ilLTIDataConnector\saveGlobalToolConsumerSettings(), and ilAuthProviderLTI\updateUser().
ilLTIPlatform::getSecret | ( | ) |
ilLTIPlatform::getTitle | ( | ) |
Definition at line 183 of file class.ilLTIPlatform.php.
References $title.
Referenced by ilLTIDataConnector\saveGlobalToolConsumerSettings(), and ilLTIDataConnector\saveToolConsumerILIAS().
ilLTIPlatform::initialize | ( | ) |
Initialise the platform.
Definition at line 114 of file class.ilLTIPlatform.php.
References ILIAS\LTI\ToolProvider\Tool\ID_SCOPE_ID_ONLY, and ILIAS\Repository\settings().
Referenced by __construct(), and ilLTIDataConnector\deleteGlobalToolConsumerSettings().
ilLTIPlatform::saveGlobalToolConsumerSettings | ( | ilLTIDataConnector | $dataConnector | ) |
Save global consumer settings.
ilLTIDataConnector | $dataConnector |
Definition at line 373 of file class.ilLTIPlatform.php.
References ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIPlatform::saveLTI | ( | ilLTIDataConnector | $dataConnector | ) |
Save the tool consumer to the database with ILIAS extension.
ilLTIDataConnector | $dataConnector |
Definition at line 392 of file class.ilLTIPlatform.php.
References ilLTIDataConnector\saveToolConsumerILIAS().
ilLTIPlatform::setActive | ( | bool | $value | ) |
Definition at line 239 of file class.ilLTIPlatform.php.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
ilLTIPlatform::setDescription | ( | string | $description | ) |
Definition at line 188 of file class.ilLTIPlatform.php.
References $description.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
ilLTIPlatform::setEnabled | ( | bool | $a_status | ) |
Definition at line 260 of file class.ilLTIPlatform.php.
ilLTIPlatform::setExtConsumerId | ( | int | $a_id | ) |
Definition at line 152 of file class.ilLTIPlatform.php.
Referenced by ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIPlatform::setLanguage | ( | string | $lang | ) |
string | $lang |
Definition at line 229 of file class.ilLTIPlatform.php.
References $lang.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
ilLTIPlatform::setPrefix | ( | string | $prefix | ) |
Definition at line 198 of file class.ilLTIPlatform.php.
References $prefix.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
ilLTIPlatform::setRefId | ( | int | $a_ref_id | ) |
Definition at line 162 of file class.ilLTIPlatform.php.
ilLTIPlatform::setRole | ( | int | $role_id | ) |
Definition at line 249 of file class.ilLTIPlatform.php.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
ilLTIPlatform::setSecret | ( | string | $secret | ) |
Definition at line 208 of file class.ilLTIPlatform.php.
References ILIAS\LTI\ToolProvider\$secret.
Referenced by createSecret().
ilLTIPlatform::setTitle | ( | string | $title | ) |
Definition at line 177 of file class.ilLTIPlatform.php.
References $title.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
|
protected |
Definition at line 75 of file class.ilLTIPlatform.php.
Referenced by getActive().
|
protected |
Definition at line 55 of file class.ilLTIPlatform.php.
Referenced by getDescription(), and setDescription().
|
protected |
Definition at line 45 of file class.ilLTIPlatform.php.
Referenced by getExtConsumerId().
|
private |
System ID value.
Definition at line 89 of file class.ilLTIPlatform.php.
|
private |
Consumer key/client ID value.
Definition at line 96 of file class.ilLTIPlatform.php.
|
protected |
Definition at line 60 of file class.ilLTIPlatform.php.
Referenced by getPrefix(), and setPrefix().
|
protected |
Definition at line 40 of file class.ilLTIPlatform.php.
Referenced by getRefId().
|
protected |
Definition at line 70 of file class.ilLTIPlatform.php.
Referenced by getRole().
|
private |
Setting values (LTI parameters, custom parameters and local parameters).
Definition at line 82 of file class.ilLTIPlatform.php.
|
protected |
Definition at line 50 of file class.ilLTIPlatform.php.
Referenced by getTitle(), and setTitle().
|
protected |
Definition at line 65 of file class.ilLTIPlatform.php.
Referenced by getLanguage().