ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
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, ?DataConnector $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|string $id, DataConnector $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 32 of file class.ilLTIPlatform.php.
ilLTIPlatform::__construct | ( | ?ilLTIDataConnector | $dataConnector = null | ) |
Class constructor.
ilLTIDataConnector | null | $dataConnector | A data connector object |
Definition at line 99 of file class.ilLTIPlatform.php.
References ilLTIDataConnector\getDataConnector(), and initialize().
ilLTIPlatform::createSecret | ( | ) |
Create a secret.
Definition at line 219 of file class.ilLTIPlatform.php.
References setSecret().
ilLTIPlatform::deleteGlobalToolConsumerSettings | ( | ilLTIDataConnector | $dataConnector | ) |
Delete global tool consumer settings.
ilLTIDataConnector | $dataConnector |
Definition at line 380 of file class.ilLTIPlatform.php.
References ilLTIDataConnector\deleteGlobalToolConsumerSettings().
|
static |
Load the platform from the database by its consumer key.
string | null | $key | Consumer key |
null | $dataConnector | A data connector object |
bool | $autoEnable | true if the platform is to be enabled automatically (optional, default is false) |
Definition at line 298 of file class.ilLTIPlatform.php.
References ilLoggerFactory\getLogger().
|
static |
int | $id | |
ilLTIDataConnector | $dataConnector |
Definition at line 332 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 352 of file class.ilLTIPlatform.php.
References ilLTIDataConnector\lookupRecordIdByGlobalSettingsAndRefId(), and null.
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 | null | $clientId | The client ID |
string | null | $deploymentId | The deployment ID |
ilLTIDataConnector | null | $dataConnector | A data connector object |
bool | $autoEnable | True if the platform is to be enabled automatically (optional, default is false) |
Definition at line 279 of file class.ilLTIPlatform.php.
References $clientId.
|
static |
Load the platform from the database by its record ID.
int | string | $id | The platform record ID |
ilLTIDataConnector | $dataConnector | Database connection object |
Definition at line 315 of file class.ilLTIPlatform.php.
References ilLoggerFactory\getLogger().
Referenced by ilAuthProviderLTI\lookupConsumer().
ilLTIPlatform::getActive | ( | ) |
Definition at line 242 of file class.ilLTIPlatform.php.
References $active.
Referenced by ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIPlatform::getDescription | ( | ) |
Definition at line 191 of file class.ilLTIPlatform.php.
References $description.
Referenced by ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIPlatform::getEnabled | ( | ) |
Definition at line 263 of file class.ilLTIPlatform.php.
ilLTIPlatform::getExtConsumerId | ( | ) |
Definition at line 155 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 232 of file class.ilLTIPlatform.php.
References $user_language.
Referenced by ilAuthProviderLTI\createUser(), and ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIPlatform::getPrefix | ( | ) |
Definition at line 201 of file class.ilLTIPlatform.php.
References $prefix.
Referenced by ilAuthProviderLTI\createUser(), and ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIPlatform::getRefId | ( | ) |
Definition at line 165 of file class.ilLTIPlatform.php.
References $ref_id.
Referenced by ilLTIDataConnector\lookupRecordIdByGlobalSettingsAndRefId(), and ilLTIDataConnector\saveToolConsumerILIAS().
ilLTIPlatform::getRole | ( | ) |
Definition at line 252 of file class.ilLTIPlatform.php.
References $role.
Referenced by ilAuthProviderLTI\createUser(), ilLTIDataConnector\saveGlobalToolConsumerSettings(), and ilAuthProviderLTI\updateUser().
ilLTIPlatform::getSecret | ( | ) |
Definition at line 211 of file class.ilLTIPlatform.php.
ilLTIPlatform::getTitle | ( | ) |
Definition at line 181 of file class.ilLTIPlatform.php.
References $title.
Referenced by ilLTIDataConnector\saveGlobalToolConsumerSettings(), and ilLTIDataConnector\saveToolConsumerILIAS().
ilLTIPlatform::initialize | ( | ) |
Initialise the platform.
Definition at line 111 of file class.ilLTIPlatform.php.
References null, ILIAS\Repository\profile(), and ILIAS\Repository\settings().
Referenced by __construct(), and ilLTIDataConnector\deleteGlobalToolConsumerSettings().
ilLTIPlatform::saveGlobalToolConsumerSettings | ( | ilLTIDataConnector | $dataConnector | ) |
Save global consumer settings.
ilLTIDataConnector | $dataConnector |
Definition at line 371 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 390 of file class.ilLTIPlatform.php.
References ilLTIDataConnector\saveToolConsumerILIAS().
ilLTIPlatform::setActive | ( | bool | $value | ) |
Definition at line 237 of file class.ilLTIPlatform.php.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
ilLTIPlatform::setDescription | ( | string | $description | ) |
Definition at line 186 of file class.ilLTIPlatform.php.
References $description.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
ilLTIPlatform::setEnabled | ( | bool | $a_status | ) |
Definition at line 258 of file class.ilLTIPlatform.php.
ilLTIPlatform::setExtConsumerId | ( | int | $a_id | ) |
Definition at line 150 of file class.ilLTIPlatform.php.
Referenced by ilLTIDataConnector\saveGlobalToolConsumerSettings().
ilLTIPlatform::setLanguage | ( | string | $lang | ) |
string | $lang |
Definition at line 227 of file class.ilLTIPlatform.php.
References $lang.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
ilLTIPlatform::setPrefix | ( | string | $prefix | ) |
Definition at line 196 of file class.ilLTIPlatform.php.
References $prefix.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
ilLTIPlatform::setRefId | ( | int | $a_ref_id | ) |
Definition at line 160 of file class.ilLTIPlatform.php.
ilLTIPlatform::setRole | ( | int | $role_id | ) |
Definition at line 247 of file class.ilLTIPlatform.php.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
ilLTIPlatform::setSecret | ( | string | $secret | ) |
Definition at line 206 of file class.ilLTIPlatform.php.
Referenced by createSecret().
ilLTIPlatform::setTitle | ( | string | $title | ) |
Definition at line 175 of file class.ilLTIPlatform.php.
References $title.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
|
protected |
Definition at line 72 of file class.ilLTIPlatform.php.
Referenced by getActive().
|
protected |
Definition at line 52 of file class.ilLTIPlatform.php.
Referenced by getDescription(), and setDescription().
|
protected |
Definition at line 42 of file class.ilLTIPlatform.php.
Referenced by getExtConsumerId().
System ID value.
Definition at line 86 of file class.ilLTIPlatform.php.
Consumer key/client ID value.
Definition at line 93 of file class.ilLTIPlatform.php.
|
protected |
Definition at line 57 of file class.ilLTIPlatform.php.
Referenced by getPrefix(), and setPrefix().
|
protected |
Definition at line 37 of file class.ilLTIPlatform.php.
Referenced by getRefId().
|
protected |
Definition at line 67 of file class.ilLTIPlatform.php.
Referenced by getRole().
|
private |
Setting values (LTI parameters, custom parameters and local parameters).
Definition at line 79 of file class.ilLTIPlatform.php.
|
protected |
Definition at line 47 of file class.ilLTIPlatform.php.
Referenced by getTitle(), and setTitle().
|
protected |
Definition at line 62 of file class.ilLTIPlatform.php.
Referenced by getLanguage().