public function QueryPath::is in QueryPath 6
Same name and namespace in other branches
- 7.3 QueryPath/QueryPath.php \QueryPath::is()
- 7.2 QueryPath/QueryPath.php \QueryPath::is()
File
- QueryPath/
QueryPath.php, line 459
Class
Code
public function is($selector) {
foreach ($this->matches as $m) {
$q = new QueryPathCssEventHandler($m);
if ($q
->find($selector)
->getMatches()
->count()) {
return TRUE;
}
}
return FALSE;
}