Class to represent a platform resource link share key. More...
Public Member Functions | |
| __construct (ResourceLink $resourceLink, ?string $id=null) | |
| Class constructor.   | |
| void | initialize () | 
| Initialise the resource link share key.   | |
| void | initialise () | 
| Initialise the resource link share key.   | |
| bool | save () | 
| Save the resource link share key to the database.   | |
| bool | delete () | 
| Delete the resource link share key from the database.   | |
| string | getId () | 
| Get share key value.   | |
Public Attributes | |
| const | MAX_SHARE_KEY_LIFE = 168 | 
| Maximum permitted life for a share key value.   | |
| const | DEFAULT_SHARE_KEY_LIFE = 24 | 
| Default life for a share key value.   | |
| const | MIN_SHARE_KEY_LENGTH = 5 | 
| Minimum length for a share key value.   | |
| const | MAX_SHARE_KEY_LENGTH = 32 | 
| Maximum length for a share key value.   | |
| int | $resourceLinkId = null | 
| ID for resource link being shared.   | |
| int | $length = null | 
| Length of share key.   | |
| int | $life = null | 
| Life of share key.   | |
| bool | $autoApprove = false | 
| Whether the sharing arrangement should be automatically approved when first used.   | |
| int | $expires = null | 
| Timestamp for when the share key expires.   | |
Class to represent a platform resource link share key.
| ceLTIc\LTI\ResourceLinkShareKey::__construct | ( | ResourceLink | $resourceLink, | 
| ?string | $id = null ) | 
Class constructor.
| ResourceLink | $resourceLink | ResourceLink object | 
| string | null | $id | Value of share key (optional, default is null) | 
References ceLTIc\LTI\Util\getRandomString().
| bool ceLTIc\LTI\ResourceLinkShareKey::delete | ( | ) | 
Delete the resource link share key from the database.
| string ceLTIc\LTI\ResourceLinkShareKey::getId | ( | ) | 
Get share key value.
Referenced by ceLTIc\LTI\DataConnector\DataConnector_mysqli\loadResourceLinkShareKey(), ceLTIc\LTI\DataConnector\DataConnector_oci8\loadResourceLinkShareKey(), ceLTIc\LTI\DataConnector\DataConnector_pdo\loadResourceLinkShareKey(), ceLTIc\LTI\DataConnector\DataConnector_pgsql\loadResourceLinkShareKey(), ceLTIc\LTI\DataConnector\DataConnector_sql\loadResourceLinkShareKey(), ceLTIc\LTI\DataConnector\DataConnector_mysqli\saveAccessToken(), and ceLTIc\LTI\DataConnector\DataConnector_pgsql\saveAccessToken().
| void ceLTIc\LTI\ResourceLinkShareKey::initialise | ( | ) | 
Initialise the resource link share key.
Synonym for initialize().
| void ceLTIc\LTI\ResourceLinkShareKey::initialize | ( | ) | 
Initialise the resource link share key.
Referenced by save().
| bool ceLTIc\LTI\ResourceLinkShareKey::save | ( | ) | 
Save the resource link share key to the database.
References initialize().
| bool ceLTIc\LTI\ResourceLinkShareKey::$autoApprove = false | 
Whether the sharing arrangement should be automatically approved when first used.
| int ceLTIc\LTI\ResourceLinkShareKey::$expires = null | 
Timestamp for when the share key expires.
| int ceLTIc\LTI\ResourceLinkShareKey::$length = null | 
Length of share key.
| int ceLTIc\LTI\ResourceLinkShareKey::$life = null | 
Life of share key.
| int ceLTIc\LTI\ResourceLinkShareKey::$resourceLinkId = null | 
ID for resource link being shared.
| const ceLTIc\LTI\ResourceLinkShareKey::DEFAULT_SHARE_KEY_LIFE = 24 | 
Default life for a share key value.
| const ceLTIc\LTI\ResourceLinkShareKey::MAX_SHARE_KEY_LENGTH = 32 | 
Maximum length for a share key value.
| const ceLTIc\LTI\ResourceLinkShareKey::MAX_SHARE_KEY_LIFE = 168 | 
Maximum permitted life for a share key value.
| const ceLTIc\LTI\ResourceLinkShareKey::MIN_SHARE_KEY_LENGTH = 5 | 
Minimum length for a share key value.