|
ILIAS
release_8 Revision v8.24
|
Class to represent a platform resource link share key. More...
Collaboration diagram for ILIAS\LTI\ToolProvider\ResourceLinkShareKey:Public Member Functions | |
| __construct (ResourceLink $resourceLink, string $id=null) | |
| Class constructor. More... | |
| initialize () | |
| Initialise the resource link share key. More... | |
| initialise () | |
| Initialise the resource link share key. More... | |
| save () | |
| Save the resource link share key to the database. More... | |
| delete () | |
| Delete the resource link share key from the database. More... | |
| getId () | |
| Get share key value. More... | |
Data Fields | |
| const | MAX_SHARE_KEY_LIFE = 168 |
| Maximum permitted life for a share key value. More... | |
| const | DEFAULT_SHARE_KEY_LIFE = 24 |
| Default life for a share key value. More... | |
| const | MIN_SHARE_KEY_LENGTH = 5 |
| Minimum length for a share key value. More... | |
| const | MAX_SHARE_KEY_LENGTH = 32 |
| Maximum length for a share key value. More... | |
| int | $resourceLinkId = null |
| ID for resource link being shared. More... | |
| int | $length = null |
| Length of share key. More... | |
| int | $life = null |
| Life of share key. More... | |
| bool | $autoApprove = false |
| Whether the sharing arrangement should be automatically approved when first used. More... | |
| int | $expires = null |
| Timestamp for when the share key expires. More... | |
Private Member Functions | |
| load () | |
| Load the resource link share key from the database. More... | |
Private Attributes | |
| string | $id = null |
| Share key value. More... | |
| DataConnector | $dataConnector = null |
| Data connector. More... | |
Class to represent a platform resource link share key.
Definition at line 30 of file ResourceLinkShareKey.php.
| ILIAS\LTI\ToolProvider\ResourceLinkShareKey::__construct | ( | ResourceLink | $resourceLink, |
| string | $id = null |
||
| ) |
Class constructor.
| ResourceLink | $resourceLink | ResourceLink object |
| string | null | $id | Value of share key (optional, default is null) |
Definition at line 106 of file ResourceLinkShareKey.php.
References ILIAS\LTI\ToolProvider\ResourceLinkShareKey\$id, ILIAS\LTI\ToolProvider\ResourceLink\getDataConnector(), ILIAS\LTI\ToolProvider\ResourceLink\getRecordId(), ILIAS\LTI\ToolProvider\ResourceLinkShareKey\initialize(), and ILIAS\LTI\ToolProvider\ResourceLinkShareKey\load().
Here is the call graph for this function:| ILIAS\LTI\ToolProvider\ResourceLinkShareKey::delete | ( | ) |
Delete the resource link share key from the database.
Definition at line 169 of file ResourceLinkShareKey.php.
| ILIAS\LTI\ToolProvider\ResourceLinkShareKey::getId | ( | ) |
Get share key value.
Definition at line 179 of file ResourceLinkShareKey.php.
References ILIAS\LTI\ToolProvider\ResourceLinkShareKey\$id.
Referenced by ilLTIDataConnector\deleteResourceLinkShareKey(), ilLTIDataConnector\loadResourceLinkShareKey(), and ilLTIDataConnector\saveResourceLinkShareKey().
Here is the caller graph for this function:| ILIAS\LTI\ToolProvider\ResourceLinkShareKey::initialise | ( | ) |
Initialise the resource link share key.
Synonym for initialize().
Definition at line 134 of file ResourceLinkShareKey.php.
References ILIAS\LTI\ToolProvider\ResourceLinkShareKey\initialize().
Here is the call graph for this function:| ILIAS\LTI\ToolProvider\ResourceLinkShareKey::initialize | ( | ) |
Initialise the resource link share key.
Definition at line 121 of file ResourceLinkShareKey.php.
Referenced by ILIAS\LTI\ToolProvider\ResourceLinkShareKey\__construct(), ilLTIDataConnector\deleteResourceLinkShareKey(), ILIAS\LTI\ToolProvider\ResourceLinkShareKey\initialise(), and ILIAS\LTI\ToolProvider\ResourceLinkShareKey\load().
Here is the caller graph for this function:
|
private |
Load the resource link share key from the database.
Definition at line 191 of file ResourceLinkShareKey.php.
References ILIAS\LTI\ToolProvider\ResourceLinkShareKey\initialize().
Referenced by ILIAS\LTI\ToolProvider\ResourceLinkShareKey\__construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\LTI\ToolProvider\ResourceLinkShareKey::save | ( | ) |
Save the resource link share key to the database.
Definition at line 144 of file ResourceLinkShareKey.php.
References ILIAS\LTI\ToolProvider\ResourceLinkShareKey\DEFAULT_SHARE_KEY_LIFE, ILIAS\LTI\ToolProvider\Util\getRandomString(), and ILIAS\LTI\ToolProvider\ResourceLinkShareKey\MAX_SHARE_KEY_LENGTH.
Here is the call graph for this function:| bool ILIAS\LTI\ToolProvider\ResourceLinkShareKey::$autoApprove = false |
Whether the sharing arrangement should be automatically approved when first used.
Definition at line 78 of file ResourceLinkShareKey.php.
|
private |
Data connector.
Definition at line 99 of file ResourceLinkShareKey.php.
| int null ILIAS\LTI\ToolProvider\ResourceLinkShareKey::$expires = null |
Timestamp for when the share key expires.
Definition at line 85 of file ResourceLinkShareKey.php.
|
private |
Share key value.
Definition at line 92 of file ResourceLinkShareKey.php.
Referenced by ILIAS\LTI\ToolProvider\ResourceLinkShareKey\__construct(), and ILIAS\LTI\ToolProvider\ResourceLinkShareKey\getId().
| int null ILIAS\LTI\ToolProvider\ResourceLinkShareKey::$length = null |
Length of share key.
Definition at line 64 of file ResourceLinkShareKey.php.
| int null ILIAS\LTI\ToolProvider\ResourceLinkShareKey::$life = null |
Life of share key.
Definition at line 71 of file ResourceLinkShareKey.php.
| int null ILIAS\LTI\ToolProvider\ResourceLinkShareKey::$resourceLinkId = null |
ID for resource link being shared.
Definition at line 57 of file ResourceLinkShareKey.php.
| const ILIAS\LTI\ToolProvider\ResourceLinkShareKey::DEFAULT_SHARE_KEY_LIFE = 24 |
Default life for a share key value.
Definition at line 40 of file ResourceLinkShareKey.php.
Referenced by ILIAS\LTI\ToolProvider\ResourceLinkShareKey\save().
| const ILIAS\LTI\ToolProvider\ResourceLinkShareKey::MAX_SHARE_KEY_LENGTH = 32 |
Maximum length for a share key value.
Definition at line 50 of file ResourceLinkShareKey.php.
Referenced by ILIAS\LTI\ToolProvider\ResourceLinkShareKey\save().
| const ILIAS\LTI\ToolProvider\ResourceLinkShareKey::MAX_SHARE_KEY_LIFE = 168 |
Maximum permitted life for a share key value.
Definition at line 35 of file ResourceLinkShareKey.php.
| const ILIAS\LTI\ToolProvider\ResourceLinkShareKey::MIN_SHARE_KEY_LENGTH = 5 |
Minimum length for a share key value.
Definition at line 45 of file ResourceLinkShareKey.php.