public function addHashtag($term)
    {
        $term = trim($term);

        //@todo implement is_hashtag filter method
        if (!is_string($term)) {
            return;
        }

        if ($hashtag = $this->getService('repos:hashtags.hashtag')->findOrAddNew(array('name' => $term))) {
            $this->hashtags->insert($hashtag);

            return $this;
        }

        return;
    }
public function addHashtag($term)
    {
        $term = trim($term);

        //@todo implement is_hashtag filter method
        if (!is_string($term)) {
            return;
        }

        if ($hashtag = $this->getService('repos:hashtags.hashtag')->findOrAddNew(array('name' => $term))) {
            $this->hashtags->insert($hashtag);

            return $this;
        }

        return;
    }
public function addHashtag ( $ term ) { $ term = trim ( $ term ) ; //@todo implement is_hashtag filter method if ( ! is_string ( $ term ) ) { return ; } if ( $ hashtag = $ this -> getService ( 'repos:hashtags.hashtag' ) -> findOrAddNew ( array ( 'name' => $ term ) ) ) { $ this -> hashtags -> insert ( $ hashtag ) ; return $ this ; } return ; }
Adds a hashtag to a hashtagable mixer entity.

@param a word
Adds a hashtag to a hashtagable mixer entity .