class HiddenField extends BaseControl

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

Methods

__construct(mixed $persistentValue = null)

No description

setValue($value)

No description

mixed
getValue()

No description

setNullable(bool $value = true)

Sets whether getValue() returns null instead of empty string.

bool
isNullable()

No description

Html
getControl()

No description

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

Bypasses label generation.

void
addError(string|Stringable $message, bool $translate = true)

Adds error message to the list.

Details

at line 25
__construct(mixed $persistentValue = null)

No description

Parameters

mixed $persistentValue

at line 42
HiddenField setValue($value)

internal  
 

No description

Parameters

$value

Return Value

HiddenField

at line 60
mixed getValue()

No description

Return Value

mixed

at line 69
HiddenField setNullable(bool $value = true)

Sets whether getValue() returns null instead of empty string.

Parameters

bool $value

Return Value

HiddenField

at line 76
bool isNullable()

No description

Return Value

bool

at line 82
Html getControl()

No description

Return Value

Html

at line 97
Html|string|null getLabel(string|Stringable|null $caption = null)

Bypasses label generation.

Parameters

string|Stringable|null $caption

Return Value

Html|string|null

at line 106
void addError(string|Stringable $message, bool $translate = true)

Adds error message to the list.

Parameters

string|Stringable $message
bool $translate

Return Value

void