You are here

private function QueryPathCssEventHandler::getAllCandidates in QueryPath 6

Same name and namespace in other branches
  1. 7.3 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::getAllCandidates()
  2. 7.2 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::getAllCandidates()
1 call to QueryPathCssEventHandler::getAllCandidates()
QueryPathCssEventHandler::candidateList in QueryPath/CssEventHandler.php

File

QueryPath/CssEventHandler.php, line 1075

Class

QueryPathCssEventHandler

Code

private function getAllCandidates($elements) {
  $found = new SplObjectStorage();
  foreach ($elements as $item) {
    $found
      ->attach($item);
    $nl = $item
      ->getElementsByTagName('*');
    $this
      ->attachNodeList($nl, $found);
  }
  return $found;
}