ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class to represent an LTI Data Connector for ILIAS. More...
Public Member Functions | |
__construct () | |
ilLTIDataConnector constructor. More... | |
loadToolConsumer ($consumer) | |
Load tool consumer object. More... | |
loadObjectToolConsumerSettings (ilLTIToolConsumer $consumer) | |
Load tool consumer settings. More... | |
loadGlobalToolConsumerSettings (ilLTIToolConsumer $consumer) | |
Load global tool consumer settings in consumer. More... | |
loadToolConsumerILIAS (ilLTIToolConsumer $consumer) | |
Load extended tool consumer object with ILIAS extension. More... | |
lookupRecordIdByGlobalSettingsAndRefId (ilLTIToolConsumer $consumer) | |
Lookup record id for global settings and ref_id. More... | |
saveToolConsumer ($consumer) | |
Save tool consumer object. More... | |
saveGlobalToolConsumerSettings (ilLTIToolConsumer $consumer) | |
Save lti_ext_consumer type $DIC. More... | |
saveToolConsumerILIAS (ilLTIToolConsumer $consumer) | |
Save extended tool consumer object with ILIAS extensions. More... | |
deleteGlobalToolConsumerSettings (ilLTIToolConsumer $consumer) | |
Delete global tool consumer settings. More... | |
deleteToolConsumer ($consumer) | |
Delete tool consumer object. More... | |
getGlobalToolConsumerSettings () | |
Get global consumer settings type $DIC. More... | |
getToolConsumers () | |
loadToolProxy ($toolProxy) | |
saveToolProxy ($toolProxy) | |
deleteToolProxy ($toolProxy) | |
loadContext ($context) | |
Load context object. More... | |
saveContext ($context) | |
Save context object. More... | |
deleteContext ($context) | |
Delete context object. More... | |
loadResourceLink ($resourceLink) | |
Load resource link object. More... | |
saveResourceLink ($resourceLink) | |
Save resource link object. More... | |
deleteResourceLink ($resourceLink) | |
Delete resource link object. More... | |
getUserResultSourcedIDsResourceLink ($resourceLink, $localOnly, $idScope) | |
Get array of user objects. More... | |
getSharesResourceLink ($resourceLink) | |
Get array of shares defined for this resource link. More... | |
loadConsumerNonce ($nonce) | |
Load nonce object. More... | |
saveConsumerNonce ($nonce) | |
Save nonce object. More... | |
loadResourceLinkShareKey ($shareKey) | |
Load resource link share key object. More... | |
saveResourceLinkShareKey ($shareKey) | |
Save resource link share key object. More... | |
deleteResourceLinkShareKey ($shareKey) | |
Delete resource link share key object. More... | |
loadUser ($user) | |
Load user object. More... | |
saveUser ($user) | |
Save user object. More... | |
deleteUser ($user) | |
Delete user object. More... | |
lookupResourcesForUserObjectRelation ($a_ref_id, $a_lti_user, $a_ext_consumer, ilDateTime $since=null) | |
Lookup resources for user object relation. More... | |
lookupResourcesForAllUsersSinceDate (ilDateTime $since) | |
Private Attributes | |
$logger = null | |
Class to represent an LTI Data Connector for ILIAS.
Definition at line 26 of file class.ilLTIDataConnector.php.
ilLTIDataConnector::__construct | ( | ) |
ilLTIDataConnector constructor.
Definition at line 37 of file class.ilLTIDataConnector.php.
References $DIC.
ilLTIDataConnector::deleteContext | ( | $context | ) |
Delete context object.
Definition at line 875 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $ok, $query, and array.
ilLTIDataConnector::deleteGlobalToolConsumerSettings | ( | ilLTIToolConsumer | $consumer | ) |
Delete global tool consumer settings.
Definition at line 504 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $query, array, ilLTIToolConsumer\getExtConsumerId(), and IMSGlobal\LTI\ToolProvider\ToolConsumer\initialize().
Referenced by ilLTIToolConsumer\deleteGlobalToolConsumerSettings().
ilLTIDataConnector::deleteResourceLink | ( | $resourceLink | ) |
Delete resource link object.
ResourceLink | $resourceLink | Resource_Link object |
Definition at line 1088 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $ok, $query, and array.
ilLTIDataConnector::deleteResourceLinkShareKey | ( | $shareKey | ) |
Delete resource link share key object.
ResourceLinkShareKey | $shareKey | Resource link share key object |
Definition at line 1365 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $ok, $query, and array.
ilLTIDataConnector::deleteToolConsumer | ( | $consumer | ) |
Delete tool consumer object.
ToolConsumer | $consumer | Consumer object |
Definition at line 532 of file class.ilLTIDataConnector.php.
References $consumer, $DIC, $ilDB, $ok, $query, and array.
ilLTIDataConnector::deleteToolProxy | ( | $toolProxy | ) |
Definition at line 769 of file class.ilLTIDataConnector.php.
ilLTIDataConnector::deleteUser | ( | $user | ) |
Delete user object.
User | $user | User object |
Definition at line 1544 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $ok, and $query.
ilLTIDataConnector::getGlobalToolConsumerSettings | ( | ) |
Get global consumer settings type $DIC.
Definition at line 646 of file class.ilLTIDataConnector.php.
References $consumer, $DIC, $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
ilLTIDataConnector::getSharesResourceLink | ( | $resourceLink | ) |
Get array of shares defined for this resource link.
ResourceLink | $resourceLink | Resource_Link object |
Definition at line 1196 of file class.ilLTIDataConnector.php.
ilLTIDataConnector::getToolConsumers | ( | ) |
Definition at line 673 of file class.ilLTIDataConnector.php.
References $consumer, $DIC, $ilDB, $query, $res, $row, and array.
ilLTIDataConnector::getUserResultSourcedIDsResourceLink | ( | $resourceLink, | |
$localOnly, | |||
$idScope | |||
) |
Get array of user objects.
Obtain an array of User objects for users with a result sourcedId. The array may include users from other resource links which are sharing this resource link. It may also be optionally indexed by the user ID of a specified scope.
ResourceLink | $resourceLink | Resource link object |
boolean | $localOnly | True if only users within the resource link are to be returned (excluding users sharing this resource link) |
int | $idScope | Scope value to use for user IDs |
Definition at line 1147 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $users, and array.
ilLTIDataConnector::loadConsumerNonce | ( | $nonce | ) |
Load nonce object.
ConsumerNonce | $nonce | Nonce object |
Definition at line 1234 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $ok, $query, $row, array, date, and time.
ilLTIDataConnector::loadContext | ( | $context | ) |
Load context object.
Definition at line 785 of file class.ilLTIDataConnector.php.
ilLTIDataConnector::loadGlobalToolConsumerSettings | ( | ilLTIToolConsumer | $consumer | ) |
Load global tool consumer settings in consumer.
ilLTIToolConsumer | $consumer |
Definition at line 166 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, ilLTIToolConsumer\getExtConsumerId(), ilLTIToolConsumer\setActive(), ilLTIToolConsumer\setDescription(), ilLTIToolConsumer\setLanguage(), ilLTIToolConsumer\setPrefix(), ilLTIToolConsumer\setRole(), and ilLTIToolConsumer\setTitle().
Referenced by loadObjectToolConsumerSettings(), and loadToolConsumerILIAS().
ilLTIDataConnector::loadObjectToolConsumerSettings | ( | ilLTIToolConsumer | $consumer | ) |
Load tool consumer settings.
ilLTIToolConsumer | $consumer |
Definition at line 141 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, ilLTIToolConsumer\getExtConsumerId(), loadGlobalToolConsumerSettings(), ilLTIToolConsumer\setActive(), ilLTIToolConsumer\setDescription(), ilLTIToolConsumer\setLanguage(), ilLTIToolConsumer\setPrefix(), ilLTIToolConsumer\setRole(), and ilLTIToolConsumer\setTitle().
ilLTIDataConnector::loadResourceLink | ( | $resourceLink | ) |
Load resource link object.
ResourceLink | $resourceLink | Resource_Link object |
Definition at line 940 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $ok, $query, $row, and array.
ilLTIDataConnector::loadResourceLinkShareKey | ( | $shareKey | ) |
Load resource link share key object.
ResourceLinkShareKey | $shareKey | Resource_Link share key object |
Definition at line 1295 of file class.ilLTIDataConnector.php.
References $DIC, $id, $ilDB, $ok, $query, $row, array, date, and time.
ilLTIDataConnector::loadToolConsumer | ( | $consumer | ) |
Load tool consumer object.
ToolConsumer | $consumer | ToolConsumer object |
Definition at line 56 of file class.ilLTIDataConnector.php.
References $consumer, $DIC, $ilDB, $ok, $query, $res, $row, and array.
ilLTIDataConnector::loadToolConsumerILIAS | ( | ilLTIToolConsumer | $consumer | ) |
Load extended tool consumer object with ILIAS extension.
ToolConsumer | $consumer | ToolConsumer object |
Definition at line 192 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $ok, $query, $res, $row, array, IMSGlobal\LTI\ToolProvider\ToolConsumer\getKey(), IMSGlobal\LTI\ToolProvider\ToolConsumer\getRecordId(), loadGlobalToolConsumerSettings(), ilLTIToolConsumer\setExtConsumerId(), IMSGlobal\LTI\ToolProvider\ToolConsumer\setRecordId(), ilLTIToolConsumer\setRefId(), and IMSGlobal\LTI\ToolProvider\ToolConsumer\setSettings().
ilLTIDataConnector::loadToolProxy | ( | $toolProxy | ) |
Definition at line 753 of file class.ilLTIDataConnector.php.
ilLTIDataConnector::loadUser | ( | $user | ) |
Load user object.
User | $user | User object |
Definition at line 1394 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $ok, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
ilLTIDataConnector::lookupRecordIdByGlobalSettingsAndRefId | ( | ilLTIToolConsumer | $consumer | ) |
Lookup record id for global settings and ref_id.
ilLTIToolConsumer | $consumer |
Definition at line 284 of file class.ilLTIDataConnector.php.
References $GLOBALS, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, ilLTIToolConsumer\getExtConsumerId(), and ilLTIToolConsumer\getRefId().
Referenced by ilLTIToolConsumer\fromGlobalSettingsAndRefId().
ilLTIDataConnector::lookupResourcesForAllUsersSinceDate | ( | ilDateTime | $since | ) |
\ilDateTime | $since |
Definition at line 1616 of file class.ilLTIDataConnector.php.
References $DIC, $logger, $query, $res, $results, $row, ilDBConstants\FETCHMODE_OBJECT, ilDateTime\get(), and IL_CAL_DATETIME.
ilLTIDataConnector::lookupResourcesForUserObjectRelation | ( | $a_ref_id, | |
$a_lti_user, | |||
$a_ext_consumer, | |||
ilDateTime | $since = null |
||
) |
Lookup resources for user object relation.
$a_ref_id | ||
$a_lti_user | ||
$a_ext_consumer | ||
ilDateTime | $since |
Definition at line 1585 of file class.ilLTIDataConnector.php.
References $DIC, $logger, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
ilLTIDataConnector::saveConsumerNonce | ( | $nonce | ) |
Save nonce object.
ConsumerNonce | $nonce | Nonce object |
Definition at line 1269 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $ok, $query, array, and date.
ilLTIDataConnector::saveContext | ( | $context | ) |
Save context object.
Definition at line 832 of file class.ilLTIDataConnector.php.
References $DIC, $id, $ilDB, $ok, $query, $time, array, date, and time.
ilLTIDataConnector::saveGlobalToolConsumerSettings | ( | ilLTIToolConsumer | $consumer | ) |
Save lti_ext_consumer type $DIC.
Definition at line 381 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $query, ilLTIToolConsumer\getActive(), ilLTIToolConsumer\getDescription(), ilLTIToolConsumer\getExtConsumerId(), ilLTIToolConsumer\getLanguage(), ilLTIToolConsumer\getPrefix(), ilLTIToolConsumer\getRole(), ilLTIToolConsumer\getTitle(), and ilLTIToolConsumer\setExtConsumerId().
Referenced by ilLTIToolConsumer\saveGlobalToolConsumerSettings().
ilLTIDataConnector::saveResourceLink | ( | $resourceLink | ) |
Save resource link object.
ResourceLink | $resourceLink | Resource_Link object |
Definition at line 1009 of file class.ilLTIDataConnector.php.
References $DIC, $id, $ilDB, $ok, $query, $time, array, date, ilLogLevel\INFO, and time.
ilLTIDataConnector::saveResourceLinkShareKey | ( | $shareKey | ) |
Save resource link share key object.
ResourceLinkShareKey | $shareKey | Resource link share key object |
Definition at line 1337 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $ok, $query, array, and date.
ilLTIDataConnector::saveToolConsumer | ( | $consumer | ) |
Save tool consumer object.
ToolConsumer | $consumer | Consumer object |
Definition at line 305 of file class.ilLTIDataConnector.php.
References $consumer, $DIC, $from, $id, $ilDB, $key, $query, $time, array, date, and time.
ilLTIDataConnector::saveToolConsumerILIAS | ( | ilLTIToolConsumer | $consumer | ) |
Save extended tool consumer object with ILIAS extensions.
ToolConsumer | $consumer | Consumer object |
Definition at line 427 of file class.ilLTIDataConnector.php.
References $DIC, $from, $id, $ilDB, $key, $query, $time, array, date, ilLTIToolConsumer\getExtConsumerId(), IMSGlobal\LTI\ToolProvider\ToolConsumer\getKey(), IMSGlobal\LTI\ToolProvider\ToolConsumer\getRecordId(), ilLTIToolConsumer\getRefId(), IMSGlobal\LTI\ToolProvider\ToolConsumer\getSettings(), ilLTIToolConsumer\getTitle(), IMSGlobal\LTI\ToolProvider\ToolConsumer\setRecordId(), and time.
ilLTIDataConnector::saveToolProxy | ( | $toolProxy | ) |
Definition at line 761 of file class.ilLTIDataConnector.php.
ilLTIDataConnector::saveUser | ( | $user | ) |
Save user object.
User | $user | User object |
Definition at line 1464 of file class.ilLTIDataConnector.php.
References $DIC, $ilDB, $ok, $query, $time, date, and time.
|
private |
Definition at line 31 of file class.ilLTIDataConnector.php.
Referenced by lookupResourcesForAllUsersSinceDate(), and lookupResourcesForUserObjectRelation().