Class to represent a tool consumer nonce

author Stephen P Vickers
version 2.5.00
license GNU Lesser General Public License, version 3
package LTI

 Methods

Class constructor.

__construct(\LTI_Tool_Consumer $consumer, string $value = NULL

Parameters

$consumer

\LTI_Tool_Consumer

Consumer object

$value

string

Nonce value (optional, default is null)

Get tool consumer.

getConsumer() : \LTI_Tool_Consumer

Returns

\LTI_Tool_ConsumerConsumer for this nonce

Get tool consumer key.

getKey() : string

Returns

stringConsumer key value

Get outcome value.

getValue() : string

Returns

stringOutcome value

Load a nonce value from the database.

load() : boolean

Returns

booleanTrue if the nonce value was successfully loaded

Save a nonce value in the database.

save() : boolean

Returns

booleanTrue if the nonce value was successfully saved

 Properties

 

Date/time when the nonce value expires.

$expires 

Default

NULL
 

Tool Consumer to which this nonce applies.

$consumer : \LTI_Tool_Consumer

Default

NULL
 

Nonce value.

$value : string

Default

NULL

 Constants

 

Maximum age nonce values will be retained for (in minutes).

MAX_NONCE_AGE = 30