public function QueryPathCssEventHandler::has in QueryPath 7.2
Same name and namespace in other branches
- 6 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::has()
- 7.3 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::has()
1 call to QueryPathCssEventHandler::has()
- QueryPathCssEventHandler::pseudoClass in QueryPath/
CssEventHandler.php
File
- QueryPath/
CssEventHandler.php, line 791
Class
Code
public function has($filter) {
$matches = $this
->candidateList();
$found = new SplObjectStorage();
foreach ($matches as $item) {
$handler = new QueryPathCssEventHandler($item);
$these = $handler
->find($filter)
->getMatches();
if (count($these) > 0) {
$found
->attach($item);
}
}
$this->matches = $found;
return $this;
}