Exemplo n.º 1
0
 public function addTags($tag)
 {
     if (!$tag instanceof Model_Tag) {
         if (is_array($tag) or $tag instanceof Model_List_Tag) {
             foreach ($tag as $item) {
                 $this->addTags($item);
             }
             return true;
         } else {
             $tag = new Model_Tag($this->_db, $tag);
         }
     }
     return $tag->tagModel($this);
 }