CsrfProtection
class CsrfProtection extends HiddenField
CSRF protection field.
Constants
| Protection |
|
| PROTECTION |
|
Properties
| Session|null | $session |
Methods
__construct(string|object $errorMessage)
No description
void
loadHttpData()
Loads HTTP data.
string
getToken()
No description
Html|string
getControl()
Generates control's HTML element.
static bool
Details
at line 31
__construct(string|object $errorMessage)
No description
at line 58
Control
setValue(mixed $value)
| internal |
No description
at line 64
void
loadHttpData()
Loads HTTP data.
at line 70
string
getToken()
No description
at line 95
Html|string
getControl()
Generates control's HTML element.
at line 102
static bool
validateCsrf(CsrfProtection $control)
| internal |
No description