You are here

public function FormField::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dom-crawler/Field/FormField.php \Symfony\Component\DomCrawler\Field\FormField::__construct()

Constructor.

Parameters

\DOMElement $node The node associated with this field:

File

vendor/symfony/dom-crawler/Field/FormField.php, line 51

Class

FormField
FormField is the abstract class for all form fields.

Namespace

Symfony\Component\DomCrawler\Field

Code

public function __construct(\DOMElement $node) {
  $this->node = $node;
  $this->name = $node
    ->getAttribute('name');
  $this->xpath = new \DOMXPath($node->ownerDocument);
  $this
    ->initialize();
}