public function QueryPathCssEventHandler::anotherSelector in QueryPath 7.2
Same name and namespace in other branches
- 6 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::anotherSelector()
- 7.3 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::anotherSelector()
Overrides CssEventHandler::anotherSelector
File
- QueryPath/
CssEventHandler.php, line 1019
Class
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);
}