Crawler::selectLink()

Crawler selectLink(string $value) Selects links by name or alt value for clickable images. Parameters string $value The link text Return Value Crawler A new instance of Crawler with the filtered list of nodes

Crawler::selectImage()

Crawler selectImage(string $value) Selects images by alt value. Parameters string $value The image alt Return Value Crawler A new instance of Crawler with the filtered list of nodes

Crawler::siblings()

Crawler siblings() Returns the siblings nodes of the current selection. Return Value Crawler A Crawler instance with the sibling nodes Exceptions InvalidArgumentException When current node is empty

Crawler::selectButton()

Crawler selectButton(string $value) Selects a button by name or alt value for images. Parameters string $value The button text Return Value Crawler A new instance of Crawler with the filtered list of nodes

Crawler::setDefaultNamespacePrefix()

setDefaultNamespacePrefix(string $prefix) Overloads a default namespace prefix to be used with XPath and CSS expressions. Parameters string $prefix

Crawler::previousAll()

Crawler previousAll() Returns the previous sibling nodes of the current selection. Return Value Crawler A Crawler instance with the previous sibling nodes Exceptions InvalidArgumentException

Crawler::reduce()

Crawler reduce(Closure $closure) Reduces the list of nodes by calling an anonymous function. To remove a node from the list, the anonymous function must return false. Parameters Closure $closure An anonymous function Return Value Crawler A Crawler instance with the selected nodes

Crawler::registerNamespace()

registerNamespace(string $prefix, string $namespace) Parameters string $prefix string $namespace

Crawler::nodeName()

string nodeName() Returns the node name of the first node of the list. Return Value string The node name Exceptions InvalidArgumentException When current node is empty

Crawler::parents()

Crawler parents() Returns the parents nodes of the current selection. Return Value Crawler A Crawler instance with the parents nodes of the current selection Exceptions InvalidArgumentException When current node is empty