ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class to represent a tool consumer resource link share key. More...
Public Member Functions | |
__construct ($resourceLink, $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... | |
$resourceLinkId = null | |
ID for resource link being shared. More... | |
$length = null | |
Length of share key. More... | |
$life = null | |
Life of share key. More... | |
$autoApprove = false | |
Whether the sharing arrangement should be automatically approved when first used. More... | |
$expires = null | |
Date/time when the share key expires. More... | |
Private Member Functions | |
load () | |
Load the resource link share key from the database. More... | |
Private Attributes | |
$id = null | |
Share key value. More... | |
$dataConnector = null | |
Data connector. More... | |
Class to represent a tool consumer resource link share key.
Definition at line 16 of file ResourceLinkShareKey.php.
IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::__construct | ( | $resourceLink, | |
$id = null |
|||
) |
Class constructor.
ResourceLink | $resourceLink | Resource_Link object |
string | $id | Value of share key (optional, default is null) |
Definition at line 86 of file ResourceLinkShareKey.php.
References IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey\$id, IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey\initialize(), and IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey\load().
IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::delete | ( | ) |
Delete the resource link share key from the database.
Definition at line 156 of file ResourceLinkShareKey.php.
IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::getId | ( | ) |
Get share key value.
Definition at line 168 of file ResourceLinkShareKey.php.
References IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey\$id.
IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::initialise | ( | ) |
Initialise the resource link share key.
Pseudonym for initialize().
Definition at line 117 of file ResourceLinkShareKey.php.
References IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey\initialize().
IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::initialize | ( | ) |
Initialise the resource link share key.
Definition at line 102 of file ResourceLinkShareKey.php.
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey\__construct(), IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey\initialise(), and IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey\load().
|
private |
Load the resource link share key from the database.
Definition at line 182 of file ResourceLinkShareKey.php.
References IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey\initialize().
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey\__construct().
IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::save | ( | ) |
Save the resource link share key to the database.
Definition at line 129 of file ResourceLinkShareKey.php.
References IMSGlobal\LTI\ToolProvider\DataConnector\DataConnector\getRandomString().
boolean IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::$autoApprove = false |
Whether the sharing arrangement should be automatically approved when first used.
Definition at line 59 of file ResourceLinkShareKey.php.
|
private |
Data connector.
Definition at line 78 of file ResourceLinkShareKey.php.
int IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::$expires = null |
Date/time when the share key expires.
Definition at line 65 of file ResourceLinkShareKey.php.
|
private |
Share key value.
Definition at line 72 of file ResourceLinkShareKey.php.
Referenced by IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey\__construct(), and IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey\getId().
int IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::$length = null |
Length of share key.
Definition at line 47 of file ResourceLinkShareKey.php.
int IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::$life = null |
Life of share key.
Definition at line 53 of file ResourceLinkShareKey.php.
string IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::$resourceLinkId = null |
ID for resource link being shared.
Definition at line 41 of file ResourceLinkShareKey.php.
const IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::DEFAULT_SHARE_KEY_LIFE = 24 |
Default life for a share key value.
Definition at line 26 of file ResourceLinkShareKey.php.
const IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::MAX_SHARE_KEY_LENGTH = 32 |
Maximum length for a share key value.
Definition at line 34 of file ResourceLinkShareKey.php.
const IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::MAX_SHARE_KEY_LIFE = 168 |
Maximum permitted life for a share key value.
Definition at line 22 of file ResourceLinkShareKey.php.
const IMSGlobal\LTI\ToolProvider\ResourceLinkShareKey::MIN_SHARE_KEY_LENGTH = 5 |
Minimum length for a share key value.
Definition at line 30 of file ResourceLinkShareKey.php.