FormField
abstract class FormField
FormField is the abstract class for all form fields.
Properties
protected DOMElement | $node | ||
protected string | $name | ||
protected string | $value | ||
protected DOMDocument | $document | ||
protected DOMXPath | $xpath | ||
protected bool | $disabled |
Methods
DOMElement|null
getLabel()
Returns the label tag associated to the field or null if none.
string
getName()
Returns the name of the field.
string|array
getValue()
Gets the value of the field.
setValue(string $value)
Sets the value of the field.
bool
hasValue()
Returns true if the field should be included in the submitted values.
bool
isDisabled()
Check if the current field is disabled.
initialize()
Initializes the form field.
Details
at line 49
__construct(DOMElement $node)
at line 63
DOMElement|null
getLabel()
Returns the label tag associated to the field or null if none.
at line 85
string
getName()
Returns the name of the field.
at line 95
string|array
getValue()
Gets the value of the field.
at line 105
setValue(string $value)
Sets the value of the field.
at line 115
bool
hasValue()
Returns true if the field should be included in the submitted values.
at line 125
bool
isDisabled()
Check if the current field is disabled.
at line 133
abstract protected
initialize()
Initializes the form field.