function Crawler::createSubCrawler
Creates a crawler for some subnodes.
Parameters
\DOMNodeList|\DOMNode|\DOMNode[]|string|null $nodes:
13 calls to Crawler::createSubCrawler()
- Crawler::ancestors in vendor/
symfony/ dom-crawler/ Crawler.php - Returns the ancestors of the current selection.
- Crawler::children in vendor/
symfony/ dom-crawler/ Crawler.php - Returns the children nodes of the current selection.
- Crawler::closest in vendor/
symfony/ dom-crawler/ Crawler.php - Return first parents (heading toward the document root) of the Element that matches the provided selector.
- Crawler::each in vendor/
symfony/ dom-crawler/ Crawler.php - Calls an anonymous function on each node of the list.
- Crawler::eq in vendor/
symfony/ dom-crawler/ Crawler.php - Returns a node given its position in the node list.
File
-
vendor/
symfony/ dom-crawler/ Crawler.php, line 1176
Class
- Crawler
- Crawler eases navigation of a list of \DOMNode objects.
Namespace
Symfony\Component\DomCrawlerCode
private function createSubCrawler(\DOMNodeList|\DOMNode|array|string|null $nodes) : static {
$crawler = new static($nodes, $this->uri, $this->baseHref);
$crawler->isHtml = $this->isHtml;
$crawler->document = $this->document;
$crawler->namespaces = $this->namespaces;
$crawler->cachedNamespaces = $this->cachedNamespaces;
$crawler->html5Parser = $this->html5Parser;
return $crawler;
}