You are here

public function Form::__construct in Zircon Profile 8

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

Constructor.

Parameters

\DOMElement $node A \DOMElement instance:

string $currentUri The URI of the page where the form is embedded:

string $method The method to use for the link (if null, it defaults to the method defined by the form):

string $baseHref The URI of the <base> used for relative links, but not for empty action:

Throws

\LogicException if the node is not a button inside a form tag

Overrides Link::__construct

File

vendor/symfony/dom-crawler/Form.php, line 49

Class

Form
Form represents an HTML form.

Namespace

Symfony\Component\DomCrawler

Code

public function __construct(\DOMElement $node, $currentUri, $method = null, $baseHref = null) {
  parent::__construct($node, $currentUri, $method);
  $this->baseHref = $baseHref;
  $this
    ->initialize();
}