| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
LTI provider for LTI launch. More...
 Inheritance diagram for ilLTIPlatform:
 Collaboration diagram for ilLTIPlatform: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().
 Here is the call graph for this function:| ilLTIPlatform::createSecret | ( | ) | 
Create a secret.
Definition at line 219 of file class.ilLTIPlatform.php.
References setSecret().
 Here is the call graph for this function:| ilLTIPlatform::deleteGlobalToolConsumerSettings | ( | ilLTIDataConnector | $dataConnector | ) | 
Delete global tool consumer settings.
| ilLTIDataConnector | $dataConnector | 
Definition at line 380 of file class.ilLTIPlatform.php.
References ilLTIDataConnector\deleteGlobalToolConsumerSettings().
 Here is the call graph for this function:
      
  | 
  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().
Referenced by ilAuthProviderLTI\findGlobalRole().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  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().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  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().
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 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().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilLTIPlatform::getActive | ( | ) | 
Definition at line 242 of file class.ilLTIPlatform.php.
References $active.
Referenced by ilLTIDataConnector\saveGlobalToolConsumerSettings().
 Here is the caller graph for this function:| ilLTIPlatform::getDescription | ( | ) | 
Definition at line 191 of file class.ilLTIPlatform.php.
References $description.
Referenced by ilLTIDataConnector\saveGlobalToolConsumerSettings().
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:| ilLTIPlatform::getLanguage | ( | ) | 
Definition at line 232 of file class.ilLTIPlatform.php.
References $user_language.
Referenced by ilAuthProviderLTI\createUser(), and ilLTIDataConnector\saveGlobalToolConsumerSettings().
 Here is the caller graph for this function:| ilLTIPlatform::getPrefix | ( | ) | 
Definition at line 201 of file class.ilLTIPlatform.php.
References $prefix.
Referenced by ilAuthProviderLTI\createUser(), and ilLTIDataConnector\saveGlobalToolConsumerSettings().
 Here is the caller graph for this function:| ilLTIPlatform::getRefId | ( | ) | 
Definition at line 165 of file class.ilLTIPlatform.php.
References $ref_id.
Referenced by ilLTIDataConnector\lookupRecordIdByGlobalSettingsAndRefId(), and ilLTIDataConnector\saveToolConsumerILIAS().
 Here is the caller graph for this function:| ilLTIPlatform::getRole | ( | ) | 
Definition at line 252 of file class.ilLTIPlatform.php.
References $role.
Referenced by ilAuthProviderLTI\createUser(), ilLTIDataConnector\saveGlobalToolConsumerSettings(), and ilAuthProviderLTI\updateUser().
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:| ilLTIPlatform::initialize | ( | ) | 
Initialise the platform.
Definition at line 111 of file class.ilLTIPlatform.php.
References ILIAS\Repository\profile(), and ILIAS\Repository\settings().
Referenced by __construct(), and ilLTIDataConnector\deleteGlobalToolConsumerSettings().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilLTIPlatform::saveGlobalToolConsumerSettings | ( | ilLTIDataConnector | $dataConnector | ) | 
Save global consumer settings.
| ilLTIDataConnector | $dataConnector | 
Definition at line 371 of file class.ilLTIPlatform.php.
References ilLTIDataConnector\saveGlobalToolConsumerSettings().
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:| ilLTIPlatform::setActive | ( | bool | $value | ) | 
Definition at line 237 of file class.ilLTIPlatform.php.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
 Here is the caller graph for this function:| ilLTIPlatform::setDescription | ( | string | $description | ) | 
Definition at line 186 of file class.ilLTIPlatform.php.
References $description.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
 Here is the caller graph for this function:| 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\loadPlatform(), and ilLTIDataConnector\saveGlobalToolConsumerSettings().
 Here is the caller graph for this function:| ilLTIPlatform::setLanguage | ( | string | $lang | ) | 
| string | $lang | 
Definition at line 227 of file class.ilLTIPlatform.php.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
 Here is the caller graph for this function:| ilLTIPlatform::setPrefix | ( | string | $prefix | ) | 
Definition at line 196 of file class.ilLTIPlatform.php.
References $prefix.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
 Here is the caller graph for this function:| ilLTIPlatform::setRefId | ( | int | $a_ref_id | ) | 
Definition at line 160 of file class.ilLTIPlatform.php.
Referenced by ilLTIDataConnector\loadPlatform().
 Here is the caller graph for this function:| ilLTIPlatform::setRole | ( | int | $role_id | ) | 
Definition at line 247 of file class.ilLTIPlatform.php.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
 Here is the caller graph for this function:| ilLTIPlatform::setSecret | ( | string | $secret | ) | 
Definition at line 206 of file class.ilLTIPlatform.php.
Referenced by createSecret().
 Here is the caller graph for this function:| ilLTIPlatform::setTitle | ( | string | $title | ) | 
Definition at line 175 of file class.ilLTIPlatform.php.
References $title.
Referenced by ilLTIDataConnector\loadGlobalToolConsumerSettings().
 Here is the caller graph for this function:
      
  | 
  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().
      
  | 
  private | 
System ID value.
Definition at line 86 of file class.ilLTIPlatform.php.
      
  | 
  private | 
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().