PHP Trait FluentDOM\Node\Xpath

Datei anzeigen Open project: fluentdom/fluentdom

Public Methods

Method Description
__invoke ( string $expression ) : mixed Allow to call evaluate() by using the node as object
evaluate ( string $expression, DOMNode $context = NULL ) : mixed Evaluate an xpath expression in the context of this element.

Method Details

__invoke() public method

Allow to call evaluate() by using the node as object
public __invoke ( string $expression ) : mixed
$expression string
return mixed

evaluate() public method

Evaluate an xpath expression in the context of this element.
public evaluate ( string $expression, DOMNode $context = NULL ) : mixed
$expression string
$context DOMNode
return mixed