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).
__construct(DOMElement $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 | |
bool | hasValue() Returns true if the field should be included in the submitted values. | from FormField |
bool | isDisabled() Check if the current field is disabled. | from FormField |
Constructor.
DOMElement | $node | The node associated with this field |
Returns the name of the field.
string | The name of the field |
Gets the value of the field.
string|array | The value of the field |
Sets the value of the field.
string | $value | The value of the field |
Returns true if the field should be included in the submitted values.
bool | true if the field should be included in the submitted values, false otherwise |
Check if the current field is disabled.
bool |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/DomCrawler/Field/InputFormField.html