ILIAS
release_8 Revision v8.23
|
Public Member Functions | |
__construct (array $namespace, string $name) | |
getToken () | |
Get the token hash value. More... | |
getName () | |
Get the full name of the token including its namespace. More... | |
__toString () | |
render () | |
Output the JS equivalent of the token as a string. More... | |
Data Fields | |
const | TOKEN_LENGTH = 24 |
Private Member Functions | |
createToken () | |
Creates a randomized string of length URLBuilderToken::TOKEN_LENGTH generated by the random_bytes() function md5() is used as a fallback on systems that don't support random_bytes() More... | |
Private Attributes | |
array | $namespace |
string | $name |
string | $token |
This is a token used by Data/URLBuilder to control usage of URL parameters. See URLBuilder interface for more details.
Definition at line 29 of file URLBuilderToken.php.
ILIAS\UI\URLBuilderToken::__construct | ( | array | $namespace, |
string | $name | ||
) |
Definition at line 36 of file URLBuilderToken.php.
References ILIAS\UI\URLBuilderToken\$name, and ILIAS\UI\URLBuilderToken\createToken().
ILIAS\UI\URLBuilderToken::__toString | ( | ) |
Definition at line 60 of file URLBuilderToken.php.
References ILIAS\UI\URLBuilderToken\getName().
|
private |
Creates a randomized string of length URLBuilderToken::TOKEN_LENGTH generated by the random_bytes() function md5() is used as a fallback on systems that don't support random_bytes()
Definition at line 70 of file URLBuilderToken.php.
References ILIAS\UI\URLBuilderToken\$token.
Referenced by ILIAS\UI\URLBuilderToken\__construct().
ILIAS\UI\URLBuilderToken::getName | ( | ) |
Get the full name of the token including its namespace.
Definition at line 55 of file URLBuilderToken.php.
References ILIAS\UI\URLBuilderToken\$name, and ILIAS\UI\URLBuilder\SEPARATOR.
Referenced by ILIAS\UI\URLBuilderToken\__toString(), ILIAS\UI\URLBuilder\checkToken(), ILIAS\UI\URLBuilder\deleteParameter(), and ILIAS\UI\URLBuilder\withParameter().
ILIAS\UI\URLBuilderToken::getToken | ( | ) |
Get the token hash value.
Definition at line 46 of file URLBuilderToken.php.
References ILIAS\UI\URLBuilderToken\$token.
Referenced by ILIAS\UI\URLBuilder\checkToken().
ILIAS\UI\URLBuilderToken::render | ( | ) |
Output the JS equivalent of the token as a string.
Used by the URLBuilder renderer.
Definition at line 85 of file URLBuilderToken.php.
|
private |
Definition at line 33 of file URLBuilderToken.php.
Referenced by ILIAS\UI\URLBuilderToken\__construct(), and ILIAS\UI\URLBuilderToken\getName().
|
private |
Definition at line 32 of file URLBuilderToken.php.
|
private |
Definition at line 34 of file URLBuilderToken.php.
Referenced by ILIAS\UI\URLBuilderToken\createToken(), and ILIAS\UI\URLBuilderToken\getToken().
const ILIAS\UI\URLBuilderToken::TOKEN_LENGTH = 24 |
Definition at line 31 of file URLBuilderToken.php.
Referenced by ILIAS\UI\URLBuilderTokenTest\testTokenLength().