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 | |
| Date/time when the nonce value expires. More... | |
Class to represent a tool consumer nonce.
Definition at line 14 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 48 of file ConsumerNonce.php.
| getConsumer | ( | ) |
Get tool consumer.
Definition at line 86 of file ConsumerNonce.php.
| getValue | ( | ) |
| load | ( | ) |
Load a nonce value from the database.
Definition at line 62 of file ConsumerNonce.php.
| save | ( | ) |
Save a nonce value in the database.
Definition at line 74 of file ConsumerNonce.php.
| int $expires = null |
Date/time when the nonce value expires.
Definition at line 27 of file ConsumerNonce.php.
| const MAX_NONCE_AGE = 30 |
Maximum age nonce values will be retained for (in minutes).
Definition at line 20 of file ConsumerNonce.php.