You are here

private function QueryPathCssEventHandler::getAllCandidates in QueryPath 7.3

Same name and namespace in other branches
  1. 6 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;
}