InputFormField
class InputFormField extends FormField
InputFormField represents an input form field (an HTML input tag).
For inputs with type of file, checkbox, or radio, there are other more specialized classes (cf. FileFormField and ChoiceFormField).
Properties
protected DOMElement | $node | from FormField | |
protected string | $name | from FormField | |
protected string | $value | from FormField | |
protected DOMDocument | $document | from FormField | |
protected DOMXPath | $xpath | from FormField | |
protected bool | $disabled | from FormField |
Methods
DOMElement|null
getLabel()
Returns the label tag associated to the field or null if none.
from FormField
bool
hasValue()
Returns true if the field should be included in the submitted values.
from FormField
initialize()
Initializes the form field.