You are here

public function QueryPathCssEventHandler::anotherSelector in QueryPath 7.3

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