class CsrfProtection extends HiddenField

CSRF protection field.

Constants

PROTECTION

Properties

Session $session

Methods

__construct(string|object $errorMessage)

No description

setValue(mixed $value)

No description

void
loadHttpData()

Loads HTTP data.

string
getToken()

No description

Html|string
getControl()

Generates control's HTML element.

static bool
validateCsrf(CsrfProtection $control)

No description

Details

at line 30
__construct(string|object $errorMessage)

Parameters

string|object $errorMessage

at line 49
IControl setValue(mixed $value)

Parameters

mixed $value

Return Value

IControl

at line 58
void loadHttpData()

Loads HTTP data.

Return Value

void

at line 64
string getToken()

Return Value

string

at line 86
Html|string getControl()

Generates control's HTML element.

Return Value

Html|string

at line 95
static bool validateCsrf(CsrfProtection $control)

Parameters

CsrfProtection $control

Return Value

bool