HiddenField
class HiddenField extends BaseControl
Hidden form control used to store a non-displayed value.
Methods
__construct($persistentValue = null)
No description
mixed
getValue()
Returns control's value.
setNullable(bool $value = true)
Sets whether getValue() returns null instead of empty string.
addFilter(callable $filter)
Appends input string filter callback.
Html|string
getControl()
Generates control's HTML element.
void
addError(string|object $message, bool $translate = true)
Adds error message to the list.
Details
at line 27
__construct($persistentValue = null)
No description
at line 45
IControl
setValue(mixed $value)
internal |
Sets control's value.
at line 59
mixed
getValue()
Returns control's value.
at line 69
HiddenField
setNullable(bool $value = true)
Sets whether getValue() returns null instead of empty string.
at line 80
HiddenField
addFilter(callable $filter)
Appends input string filter callback.
at line 87
Html|string
getControl()
Generates control's HTML element.
at line 102
Html|string|null
getLabel(string|object $caption = null)
Bypasses label generation.
at line 112
void
addError(string|object $message, bool $translate = true)
Adds error message to the list.