abstract class FormField
FormField is the abstract class for all form fields.
protected DOMElement | $node | ||
protected string | $name | ||
protected string | $value | ||
protected DOMDocument | $document | ||
protected DOMXPath | $xpath | ||
protected bool | $disabled |
__construct(DOMElement $node) | ||
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. |
DOMElement | $node | The node associated with this field |
Returns the label tag associated to the field or null if none.
DOMElement|null |
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 |
Initializes the form field.
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DomCrawler/Field/FormField.html