models/BaseDoc.php
public function hasTag($name)
    {
        foreach ($this->tags as $tag) {
            if (strtolower($tag->getName()) == $name) {
                return true;
            }
        }
        return false;
    }
public function hasTag($name)
    {
        foreach ($this->tags as $tag) {
            if (strtolower($tag->getName()) == $name) {
                return true;
            }
        }
        return false;
    }
public function hasTag ( $ name ) { foreach ( $ this -> tags as $ tag ) { if ( strtolower ( $ tag -> getName ( ) ) == $ name ) { return true ; } } return false ; }
Checks if doc has tag of a given name
@param string $name tag name
@return bool if doc has tag of a given name
Checks if doc has tag of a given name