|
ILIAS
release_8 Revision v8.24
|
Class to represent a platform nonce. More...
Collaboration diagram for ILIAS\LTI\ToolProvider\PlatformNonce:Public Member Functions | |
| __construct (Platform $platform, string $value=null) | |
| Class constructor. More... | |
| load () | |
| Load a nonce value from the database. More... | |
| save () | |
| Save a nonce value in the database. More... | |
| delete () | |
| Delete a nonce value in the database. More... | |
| getPlatform () | |
| Get platform. More... | |
| getValue () | |
| Get outcome value. More... | |
Data Fields | |
| const | MAX_NONCE_AGE = 30 |
| Maximum age nonce values will be retained for (in minutes). More... | |
| int | $expires = null |
| Timestamp for when the nonce value expires. More... | |
Static Public Attributes | |
| static int | $maximumLength = 50 |
| Maximum length which can be stored. More... | |
Private Attributes | |
| Platform | $platform = null |
| Platform to which this nonce applies. More... | |
| string | $value = null |
| Nonce value. More... | |
Class to represent a platform nonce.
Definition at line 28 of file PlatformNonce.php.
| ILIAS\LTI\ToolProvider\PlatformNonce::__construct | ( | Platform | $platform, |
| string | $value = null |
||
| ) |
Class constructor.
| Platform | $platform | Platform object |
| string | null | $value | Nonce value (optional, default is null) |
Definition at line 70 of file PlatformNonce.php.
References ILIAS\LTI\ToolProvider\PlatformNonce\$platform, and ILIAS\LTI\ToolProvider\PlatformNonce\$value.
| ILIAS\LTI\ToolProvider\PlatformNonce::delete | ( | ) |
Delete a nonce value in the database.
Definition at line 102 of file PlatformNonce.php.
| ILIAS\LTI\ToolProvider\PlatformNonce::getPlatform | ( | ) |
Get platform.
Definition at line 112 of file PlatformNonce.php.
References ILIAS\LTI\ToolProvider\PlatformNonce\$platform.
| ILIAS\LTI\ToolProvider\PlatformNonce::getValue | ( | ) |
Get outcome value.
Definition at line 122 of file PlatformNonce.php.
References ILIAS\LTI\ToolProvider\PlatformNonce\$value.
| ILIAS\LTI\ToolProvider\PlatformNonce::load | ( | ) |
Load a nonce value from the database.
Definition at line 82 of file PlatformNonce.php.
| ILIAS\LTI\ToolProvider\PlatformNonce::save | ( | ) |
Save a nonce value in the database.
Definition at line 92 of file PlatformNonce.php.
| int null ILIAS\LTI\ToolProvider\PlatformNonce::$expires = null |
Timestamp for when the nonce value expires.
Definition at line 49 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 42 of file PlatformNonce.php.
|
private |
Platform to which this nonce applies.
Definition at line 56 of file PlatformNonce.php.
Referenced by ILIAS\LTI\ToolProvider\PlatformNonce\__construct(), and ILIAS\LTI\ToolProvider\PlatformNonce\getPlatform().
|
private |
Nonce value.
Definition at line 63 of file PlatformNonce.php.
Referenced by ILIAS\LTI\ToolProvider\PlatformNonce\__construct(), and ILIAS\LTI\ToolProvider\PlatformNonce\getValue().
| const ILIAS\LTI\ToolProvider\PlatformNonce::MAX_NONCE_AGE = 30 |
Maximum age nonce values will be retained for (in minutes).
Definition at line 33 of file PlatformNonce.php.