You are here

public function QueryPath::is in QueryPath 6

Same name and namespace in other branches
  1. 7.3 QueryPath/QueryPath.php \QueryPath::is()
  2. 7.2 QueryPath/QueryPath.php \QueryPath::is()

File

QueryPath/QueryPath.php, line 459

Class

QueryPath

Code

public function is($selector) {
  foreach ($this->matches as $m) {
    $q = new QueryPathCssEventHandler($m);
    if ($q
      ->find($selector)
      ->getMatches()
      ->count()) {
      return TRUE;
    }
  }
  return FALSE;
}