FluentDOM\Nodes\Fetcher::fetch PHP Méthode

fetch() public méthode

public fetch ( string $expression, callable $filter = NULL, callable $stopAt = NULL, integer $options ) : array
$expression string
$filter callable
$stopAt callable
$options integer
Résultat array
    public function fetch($expression, callable $filter = NULL, callable $stopAt = NULL, $options = 0)
    {
        if ($this->validateContextIgnore($expression, $options)) {
            $nodes = $this->fetchFor($expression, NULL, $filter, $stopAt, $options);
        } else {
            $nodes = array();
            foreach ($this->_nodes->toArray() as $context) {
                $nodes = array_merge($nodes, $this->fetchFor($expression, $context, $filter, $stopAt, $options));
            }
        }
        return $this->unique($nodes, $options);
    }