QueryPath\CSS\QueryPathEventHandler::getAllCandidates PHP Метод

getAllCandidates() приватный Метод

This is used when $this->findAnyElement is TRUE.
private getAllCandidates ( $elements )
$elements A list of current elements (usually $this->matches).
    private function getAllCandidates($elements)
    {
        $found = new \SplObjectStorage();
        foreach ($elements as $item) {
            $found->attach($item);
            // put self in
            $nl = $item->getElementsByTagName('*');
            //foreach ($nl as $node) $found[] = $node;
            $this->attachNodeList($nl, $found);
        }
        return $found;
    }