예제 #1
0
 /**
 * Return tags for this object
 *
 * @param void
 * @return array
 */
 function getTags() {
   if (plugin_active('tags')) {
     if (!$this->isTaggable()) {
       throw new Error('Object not taggable');
     }
     return Tags::getTagsByObject($this, get_class($this->manager()));
   }
   return array();
 } // getTags
 /**
  * Return tags for this object
  *
  * @param void
  * @return array
  */
 function getTags()
 {
     if (!$this->isTaggable()) {
         throw new Error('Object not taggable');
     }
     return Tags::getTagsByObject($this, get_class($this->manager()));
 }
 /**
  * Return tags for this object
  *
  * @param void
  * @return array
  */
 function getTags()
 {
     if (!$this->isTaggable()) {
         throw new Error('Object not taggable');
     }
     if (is_null($this->tags)) {
         $this->tags = Tags::getTagsByObject($this, get_class($this->manager()));
         if (is_null($this->tags)) {
             $this->tags = array();
         }
     }
     return $this->tags;
 }