Class to represent a tool consumer context share key
deprecated | Use LTI_Resource_Link_Share_Key instead |
---|---|
see | |
author | Stephen P Vickers |
version | 2.5.00 |
license | GNU Lesser General Public License, version 3 |
package | LTI |
inherited_from | \LTI_Resource_Link_Share_Key |
__construct(\LTI_Resource_Link $resource_link, string $id = NULL
)
inherited_from | \LTI_Resource_Link_Share_Key::__construct() |
---|
\LTI_Resource_Link
Resource_Link object
string
Value of share key (optional, default is null)
__construct(\LTI_Resource_Link $resource_link, string $id = NULL
)
\LTI_Resource_Link
Resource_Link object
string
Value of share key (optional, default is null)
delete() : boolean
boolean
True if the share key was successfully deletedgetId() : string
string
Share key valueinitialise()
save() : boolean
boolean
True if the share key was successfully savedload()
$auto_approve : boolean
FALSE
$expires : object
NULL
$length : integer
NULL
$life : integer
NULL
$primary_consumer_key : string
NULL
$primary_context_id
NULL
$primary_resource_link_id : string
NULL
$data_connector : \LTI_Data_Connector
NULL
$id : string
NULL
DEFAULT_SHARE_KEY_LIFE = 24
MAX_SHARE_KEY_LENGTH = 32
MAX_SHARE_KEY_LIFE = 168
MIN_SHARE_KEY_LENGTH = 5