PHP Class FluentDOM\Nodes\Fetcher

Datei anzeigen Open project: fluentdom/fluentdom

Public Methods

Method Description
__construct ( Nodes $nodes )
fetch ( string $expression, callable $filter = NULL, callable $stopAt = NULL, integer $options ) : array

Private Methods

Method Description
fetchFor ( string $expression, DOMNode $context = NULL, callable $filter = NULL, callable $stopAt = NULL, integer $options ) : array | boolean | DOMNodeList | float | string Fetch the nodes for the provided context node. If $context ist NULL the document context is used. Use $filter and $stopAt to reduce the returned nodes.
fetchNodes ( string $expression, DOMNode $context = NULL, integer $options ) : array | boolean | DOMNodeList | float | string Fetch the nodes for the provided context node. If $context ist NULL the document context is used.
filterNodes ( array $nodes, callable $filter = NULL, callable $stopAt = NULL, integer $options ) : array
getNodeStatus ( DOMNode $node, integer $index, callable $filter = NULL, callable $stopAt = NULL ) : boolean[]
unique ( array $nodes, integer $options ) : array Make nodes unique if needed or forced.
validateContextIgnore ( string $expression, integer $options ) : boolean Validate if the context can be ignored.

Method Details

__construct() public method

public __construct ( Nodes $nodes )
$nodes FluentDOM\Nodes

fetch() public method

public fetch ( string $expression, callable $filter = NULL, callable $stopAt = NULL, integer $options ) : array
$expression string
$filter callable
$stopAt callable
$options integer
return array