public function hasAttribute($qname)
    {
        foreach($this->attribute_nodes as $attr) if ($attr->getQualifiedName() == $qname) return true;
        return false;
    }
public function hasAttribute($qname)
    {
        foreach($this->attribute_nodes as $attr) if ($attr->getQualifiedName() == $qname) return true;
        return false;
    }
public function hasAttribute ( $ qname ) { foreach ( $ this -> attribute_nodes as $ attr ) if ( $ attr -> getQualifiedName ( ) == $ qname ) return true ; return false ; }
Returns true if the element contains specified PHPTAL attribute.
Returns true if the element contains specified PHPTAL attribute .