You are here

public function Crawler::__construct in Zircon Profile 8

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

Constructor.

Parameters

mixed $node A Node to use as the base for the crawling:

string $currentUri The current URI:

string $baseHref The base href value:

File

vendor/symfony/dom-crawler/Crawler.php, line 50

Class

Crawler
Crawler eases navigation of a list of \DOMElement objects.

Namespace

Symfony\Component\DomCrawler

Code

public function __construct($node = null, $currentUri = null, $baseHref = null) {
  $this->uri = $currentUri;
  $this->baseHref = $baseHref ?: $currentUri;
  $this
    ->add($node);
}