|
ILIAS
release_8 Revision v8.24
|
Collaboration diagram for ILIAS\UI\URLBuilderToken: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().
Here is the call graph for this function:| ILIAS\UI\URLBuilderToken::__toString | ( | ) |
Definition at line 60 of file URLBuilderToken.php.
References ILIAS\UI\URLBuilderToken\getName().
Here is the call graph for this function:
|
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().
Here is the caller graph for this function:| 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(), and ILIAS\UI\URLBuilder\checkToken().
Here is the caller graph for this function:| ILIAS\UI\URLBuilderToken::getToken | ( | ) |
Get the token hash value.
Definition at line 46 of file URLBuilderToken.php.
References ILIAS\UI\URLBuilderToken\$token.
| 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.
References ILIAS\UI\URLBuilderToken\$name, and ILIAS\UI\URLBuilderToken\$namespace.
|
private |
Definition at line 33 of file URLBuilderToken.php.
Referenced by ILIAS\UI\URLBuilderToken\__construct(), ILIAS\UI\URLBuilderToken\getName(), and ILIAS\UI\URLBuilderToken\render().
|
private |
Definition at line 32 of file URLBuilderToken.php.
Referenced by ILIAS\UI\URLBuilderToken\render().
|
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().