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).
Methods
|
__construct(DOMNode $node)
Constructor. |
from FormField | |
| string |
getName()
Returns the name of the field. |
from FormField |
| string|array |
getValue()
Gets the value of the field. |
from FormField |
|
setValue(string $value)
Sets the value of the field. |
from FormField | |
| Boolean |
hasValue()
Returns true if the field should be included in the submitted values. |
from FormField |
| Boolean |
isDisabled()
Check if the current field is disabled |
from FormField |
Details
in FormField at line 51
public
__construct(DOMNode $node)
Constructor.
in FormField at line 71
public string
getName()
Returns the name of the field.
in FormField at line 81
public string|array
getValue()
Gets the value of the field.
in FormField at line 93
public
setValue(string $value)
Sets the value of the field.
in FormField at line 103
public Boolean
hasValue()
Returns true if the field should be included in the submitted values.
in FormField at line 113
public Boolean
isDisabled()
Check if the current field is disabled