public function QueryPath::hasAttr in QueryPath 6
Same name and namespace in other branches
- 7.3 QueryPath/QueryPath.php \QueryPath::hasAttr()
- 7.2 QueryPath/QueryPath.php \QueryPath::hasAttr()
File
- QueryPath/
QueryPath.php, line 360
Class
Code
public function hasAttr($attrName) {
foreach ($this->matches as $match) {
if (!$match
->hasAttribute($attrName)) {
return FALSE;
}
}
return TRUE;
}