class CsrfProtection extends HiddenField

Constants

PROTECTION

Properties

Session $session

Methods

__construct($message)

No description

void
attached($parent)

This method will be called when the component becomes attached to Form.

void
setValue($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 28
__construct($message)

No description

Parameters

$message

at line 36
protected void attached($parent)

This method will be called when the component becomes attached to Form.

Parameters

$parent

Return Value

void

at line 48
void setValue($value)

No description

Parameters

$value

Return Value

void

at line 58
void loadHttpData()

Loads HTTP data.

Return Value

void

at line 67
string getToken()

No description

Return Value

string

at line 93
Html|string getControl()

Generates control's HTML element.

Return Value

Html|string

at line 103
static bool validateCsrf(CsrfProtection $control)

internal  
 

No description

Parameters

CsrfProtection $control

Return Value

bool