You are here

public function QueryPath::hasAttr in QueryPath 6

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

File

QueryPath/QueryPath.php, line 360

Class

QueryPath

Code

public function hasAttr($attrName) {
  foreach ($this->matches as $match) {
    if (!$match
      ->hasAttribute($attrName)) {
      return FALSE;
    }
  }
  return TRUE;
}