You are here

public function QueryPathCssEventHandler::anotherSelector in QueryPath 6

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

Overrides CssEventHandler::anotherSelector

File

QueryPath/CssEventHandler.php, line 1019

Class

QueryPathCssEventHandler

Code

public function anotherSelector() {
  $this->findAnyElement = FALSE;
  if ($this->matches
    ->count() > 0) {
    foreach ($this->matches as $item) {
      $this->alreadyMatched
        ->attach($item);
    }
  }
  $this->findAnyElement = TRUE;
  $this->matches = new SplObjectStorage();
  $this->matches
    ->attach($this->dom);
}