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
)
string
Consumer key
mixed
String 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)
boolean
true if the tool consumers is to be enabled automatically (optional, default is false)
delete() : boolean
boolean
True if the object was successfully deletedgetDataConnector() : mixed
mixed
Data connector object or stringgetIsAvailable() : boolean
boolean
True if the consumer key is enabled and within any date constraintsgetKey() : string
string
Consumer key valueinitialise()
save() : boolean
boolean
True if the object was successfully savedsignParameters(string $url, string $type, string $version, array $params) : array
string
URL for message request
string
LTI message type
string
LTI version
array
Message parameters
array
Array of signed message parametersload(string $key, boolean $autoEnable = FALSE
) : boolean
string
The consumer key value
boolean
True if the consumer should be enabled (optional, default if false)
boolean
True 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