public function Crawler::getNode in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Crawler.php \Symfony\Component\DomCrawler\Crawler::getNode()
Parameters
int $position:
Return value
\DOMElement|null
7 calls to Crawler::getNode()
- Crawler::attr in vendor/
symfony/ dom-crawler/ Crawler.php - Returns the attribute value of the first node of the list.
- Crawler::form in vendor/
symfony/ dom-crawler/ Crawler.php - Returns a Form object for the first node in the list.
- Crawler::link in vendor/
symfony/ dom-crawler/ Crawler.php - Returns a Link object for the first node in the list.
- Crawler::nextAll in vendor/
symfony/ dom-crawler/ Crawler.php - Returns the next siblings nodes of the current selection.
- Crawler::parents in vendor/
symfony/ dom-crawler/ Crawler.php - Returns the parents nodes of the current selection.
File
- vendor/
symfony/ dom-crawler/ Crawler.php, line 917
Class
- Crawler
- Crawler eases navigation of a list of \DOMElement objects.
Namespace
Symfony\Component\DomCrawlerCode
public function getNode($position) {
foreach ($this as $i => $node) {
if ($i == $position) {
return $node;
}
}
}