コード例 #1
0
ファイル: publication.php プロジェクト: sumudinie/hubzero-cms
 /**
  * Get tags
  *
  * @param      int $tagger_id
  * @param      int $strength
  * @param      boolean $admin
  *
  * @return     string HTML
  */
 public function getTags($tagger_id = 0, $strength = 0, $admin = 0)
 {
     if (!$this->exists()) {
         return false;
     }
     if (!isset($this->_tags)) {
         include_once PATH_CORE . DS . 'components' . DS . 'com_publications' . DS . 'helpers' . DS . 'tags.php';
         $rt = new Helpers\Tags($this->_db);
         $this->_tags = $rt->get_tags_on_object($this->get('id'), 0, 0, $tagger_id, $strength, $admin);
     }
     return $this->_tags;
 }