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