class HiddenField extends BaseControl

Hidden form control used to store a non-displayed value.

Methods

__construct($persistentValue = null)

No description

setValue(mixed $value)

Sets control's value.

Html|string
getControl()

Generates control's HTML element.

Html|string
getLabel(string|object $caption = null)

Bypasses label generation.

void
addError($message, bool $translate = true)

Adds error message to the list.

Details

at line 24
__construct($persistentValue = null)

Parameters

$persistentValue

at line 42
IControl setValue(mixed $value)

Sets control's value.

Parameters

mixed $value

Return Value

IControl

at line 57
Html|string getControl()

Generates control's HTML element.

Return Value

Html|string

at line 73
Html|string getLabel(string|object $caption = null)

Bypasses label generation.

Parameters

string|object $caption

Return Value

Html|string

at line 82
void addError($message, bool $translate = true)

Adds error message to the list.

Parameters

$message
bool $translate

Return Value

void