Class to represent a platform nonce. More...
Public Member Functions | |
| __construct ($platform, $value=null) | |
| Class constructor. | |
| bool | load () |
| Load a nonce value from the database. | |
| bool | save () |
| Save a nonce value in the database. | |
| bool | delete () |
| Delete a nonce value in the database. | |
| Platform | getPlatform () |
| Get platform. | |
| string | getValue () |
| Get outcome value. | |
Public Attributes | |
| const | MAX_NONCE_AGE = 30 |
| Maximum age nonce values will be retained for (in minutes). | |
| int null | $expires = null |
| Timestamp for when the nonce value expires. | |
Static Public Attributes | |
| static int | $maximumLength = 50 |
| Maximum length which can be stored. | |
Class to represent a platform nonce.
| __construct | ( | $platform, | |
$value = null |
|||
| ) |
Class constructor.
| Platform | $platform | Platform object |
| string | $value | Nonce value (optional, default is null) |
Reimplemented in ConsumerNonce.
| bool delete | ( | ) |
Delete a nonce value in the database.
| Platform getPlatform | ( | ) |
| string getValue | ( | ) |
Get outcome value.
| bool load | ( | ) |
Load a nonce value from the database.
| bool save | ( | ) |
Save a nonce value in the database.
| int null $expires = null |
Timestamp for when the nonce value expires.
$expires
|
static |
Maximum length which can be stored.
Characters are removed from the beginning of the value when too long.
$maximumLength