![]() |
LTI Integration Library
3.1.0
PHP class library for building LTI integrations
|
Class to represent a tool consumer nonce. More...
Public Member Functions | |
| __construct ($consumer, $value=null) | |
| Class constructor. More... | |
| load () | |
| Load a nonce value from the database. More... | |
| save () | |
| Save a nonce value in the database. More... | |
| getConsumer () | |
| Get tool consumer. More... | |
| getValue () | |
| Get outcome value. More... | |
Data Fields | |
| const | MAX_NONCE_AGE = 30 |
| Maximum age nonce values will be retained for (in minutes). More... | |
| $expires = null | |
| Timestamp for when the nonce value expires. More... | |
Static Public Attributes | |
| static | $maximumLength = 50 |
| Maximum length which can be stored. More... | |
Class to represent a tool consumer nonce.
Definition at line 13 of file ConsumerNonce.php.
| __construct | ( | $consumer, | |
$value = null |
|||
| ) |
Class constructor.
| ToolConsumer | $consumer | Consumer object |
| string | $value | Nonce value (optional, default is null) |
Definition at line 57 of file ConsumerNonce.php.
| getConsumer | ( | ) |
Get tool consumer.
Definition at line 89 of file ConsumerNonce.php.
| getValue | ( | ) |
| load | ( | ) |
Load a nonce value from the database.
Definition at line 69 of file ConsumerNonce.php.
| save | ( | ) |
Save a nonce value in the database.
Definition at line 79 of file ConsumerNonce.php.
| int null $expires = null |
Timestamp for when the nonce value expires.
Definition at line 35 of file ConsumerNonce.php.
|
static |
Maximum length which can be stored.
Characters are removed from the beginning of the value when too long.
Definition at line 28 of file ConsumerNonce.php.
| const MAX_NONCE_AGE = 30 |
Maximum age nonce values will be retained for (in minutes).
Definition at line 19 of file ConsumerNonce.php.