Symfony\Component\DomCrawler\Field\FormField
FormField is the abstract class for all form fields.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class FormField
{
- // members
- protected DOMNode $node;
- protected string $name;
- protected string $value;
- protected DOMDocument $document;
- protected DOMXPath $xpath;
- protected Boolean $disabled;
- // methods
- public void __construct()
- public string getName()
- public string|array getValue()
- public void setValue()
- public Boolean hasValue()
- public Boolean isDisabled()
- protected abstract void initialize()
Hierarchy
Extended by
Members
protected
- $disabled — Symfony\Component\DomCrawler\Field\Boolean
- $document — \DOMDocument
- $name — string
- $node — \DOMNode
- $value — string
- $xpath — \DOMXPath
Methods
protected
- initialize() — Initializes the form field.
public
- __construct() — Constructor.
- getName() — Returns the name of the field.
- getValue() — Gets the value of the field.
- hasValue() — Returns true if the field should be included in the submitted values.
- isDisabled() — Check if the current field is disabled
- setValue() — Sets the value of the field.