Class to represent a platform nonce. More...
Public Member Functions | |
| __construct ($platform, $value=null) | |
| Class constructor. | |
| load () | |
| Load a nonce value from the database. | |
| save () | |
| Save a nonce value in the database. | |
| delete () | |
| Delete a nonce value in the database. | |
| getPlatform () | |
| Get platform. | |
| getValue () | |
| Get nonce value. | |
Data Fields | |
| const | MAX_NONCE_AGE = 30 |
| Maximum age nonce values will be retained for (in minutes). | |
| $expires = null | |
| Timestamp for when the nonce value expires. | |
Static Public Attributes | |
| static | $maximumLength = 50 |
| Maximum length which can be stored. | |
Class to represent a platform nonce.
Definition at line 12 of file PlatformNonce.php.
| __construct | ( | $platform, | |
$value = null |
|||
| ) |
Class constructor.
| Platform | $platform | Platform object |
| string | null | $value | Nonce value (optional, default is null) |
Reimplemented in ConsumerNonce.
Definition at line 56 of file PlatformNonce.php.
| delete | ( | ) |
Delete a nonce value in the database.
Definition at line 88 of file PlatformNonce.php.
| getPlatform | ( | ) |
Get platform.
Definition at line 98 of file PlatformNonce.php.
Referenced by ConsumerNonce\getConsumer().
| getValue | ( | ) |
| load | ( | ) |
Load a nonce value from the database.
Definition at line 68 of file PlatformNonce.php.
| save | ( | ) |
Save a nonce value in the database.
Definition at line 78 of file PlatformNonce.php.
| int null $expires = null |
Timestamp for when the nonce value expires.
Definition at line 34 of file PlatformNonce.php.
|
static |
Maximum length which can be stored.
Characters are removed from the beginning of the value when too long.
Definition at line 27 of file PlatformNonce.php.
| const MAX_NONCE_AGE = 30 |
Maximum age nonce values will be retained for (in minutes).
Definition at line 18 of file PlatformNonce.php.