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