Class to represent a tool consumer
| author | Stephen P Vickers |
|---|---|
| version | 2.5.00 |
| license | GNU Lesser General Public License, version 3 |
| package | LTI |
__construct(string $key= NULL, mixed $data_connector= '', boolean $autoEnable= FALSE)
stringConsumer key
mixedString containing table name prefix, or database connection object, or array containing one or both values (optional, default is MySQL with an empty table name prefix)
booleantrue if the tool consumers is to be enabled automatically (optional, default is false)
delete() : boolean
booleanTrue if the object was successfully deletedgetDataConnector() : mixed
mixedData connector object or stringgetIsAvailable() : boolean
booleanTrue if the consumer key is enabled and within any date constraintsgetKey() : string
stringConsumer key valueinitialise()
save() : boolean
booleanTrue if the object was successfully savedsignParameters(string $url, string $type, string $version, array $params) : array
stringURL for message request
stringLTI message type
stringLTI version
arrayMessage parameters
arrayArray of signed message parametersload(string $key, boolean $autoEnable = FALSE) : boolean
stringThe consumer key value
booleanTrue if the consumer should be enabled (optional, default if false)
booleanTrue if the consumer was successfully loaded$consumer_guid : string
NULL$consumer_name : string
NULL$consumer_version : string
NULL$created : object
NULL$css_path : string
NULL$defaultEmail : string
''$enable_from : object
NULL$enable_until : object
NULL$enabled : boolean
FALSE$id_scope : integer
\LTI_Tool_Provider::ID_SCOPE_ID_ONLY$last_access : object
NULL$lti_version : string
NULL$name : string
NULL$protected : boolean
FALSE$secret : string
NULL$updated : object
NULL$data_connector : mixed
NULL$key : string
NULL