You are here

public function QueryPathCssEventHandler::anyElement in QueryPath 6

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

Overrides CssEventHandler::anyElement

File

QueryPath/CssEventHandler.php, line 170

Class

QueryPathCssEventHandler

Code

public function anyElement() {
  $found = new SplObjectStorage();
  $matches = $this
    ->candidateList();
  foreach ($matches as $item) {
    $found
      ->attach($item);
  }
  $this->matches = $found;
  $this->findAnyElement = FALSE;
}