You are here

public function QueryPathCssEventHandler::anyElement in QueryPath 7.2

Same name and namespace in other branches
  1. 6 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::anyElement()
  2. 7.3 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;
}