![]() |
LTI Integration Library
3.1.0
PHP class library for building LTI integrations
|
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 | |
| Timestamp for when the share key expires. More... | |
Class to represent a tool consumer resource link share key.
Definition at line 15 of file ResourceLinkShareKey.php.
| __construct | ( | $resourceLink, | |
$id = null |
|||
| ) |
Class constructor.
| ResourceLink | $resourceLink | ResourceLink object |
| string | $id | Value of share key (optional, default is null) |
Definition at line 93 of file ResourceLinkShareKey.php.
References ResourceLinkShareKey\initialize().
| delete | ( | ) |
Delete the resource link share key from the database.
Definition at line 155 of file ResourceLinkShareKey.php.
| getId | ( | ) |
Get share key value.
Definition at line 165 of file ResourceLinkShareKey.php.
| initialise | ( | ) |
Initialise the resource link share key.
Pseudonym for initialize().
Definition at line 120 of file ResourceLinkShareKey.php.
References ResourceLinkShareKey\initialize().
| initialize | ( | ) |
Initialise the resource link share key.
Definition at line 107 of file ResourceLinkShareKey.php.
Referenced by ResourceLinkShareKey\__construct(), and ResourceLinkShareKey\initialise().
| save | ( | ) |
Save the resource link share key to the database.
Definition at line 130 of file ResourceLinkShareKey.php.
References ResourceLinkShareKey\DEFAULT_SHARE_KEY_LIFE, DataConnector\getRandomString(), and ResourceLinkShareKey\MAX_SHARE_KEY_LENGTH.
| bool $autoApprove = false |
Whether the sharing arrangement should be automatically approved when first used.
Definition at line 64 of file ResourceLinkShareKey.php.
| int null $expires = null |
Timestamp for when the share key expires.
Definition at line 71 of file ResourceLinkShareKey.php.
| int null $length = null |
Length of share key.
Definition at line 50 of file ResourceLinkShareKey.php.
| int null $life = null |
Life of share key.
Definition at line 57 of file ResourceLinkShareKey.php.
| int null $resourceLinkId = null |
ID for resource link being shared.
Definition at line 43 of file ResourceLinkShareKey.php.
| const DEFAULT_SHARE_KEY_LIFE = 24 |
Default life for a share key value.
Definition at line 26 of file ResourceLinkShareKey.php.
Referenced by ResourceLinkShareKey\save().
| const MAX_SHARE_KEY_LENGTH = 32 |
Maximum length for a share key value.
Definition at line 36 of file ResourceLinkShareKey.php.
Referenced by ResourceLinkShareKey\save().
| const MAX_SHARE_KEY_LIFE = 168 |
Maximum permitted life for a share key value.
Definition at line 21 of file ResourceLinkShareKey.php.
| const MIN_SHARE_KEY_LENGTH = 5 |
Minimum length for a share key value.
Definition at line 31 of file ResourceLinkShareKey.php.