コード例 #1
0
ファイル: forum.php プロジェクト: mined-gatech/hubzero-cms
 /**
  * Get the item type
  *
  * @param   string  $as  Return type as?
  * @return  string
  */
 public function type($as = null)
 {
     if ($as == 'title') {
         return Lang::txt('Forum thread');
     }
     return parent::type($as);
 }
コード例 #2
0
ファイル: kb.php プロジェクト: mined-gatech/hubzero-cms
 /**
  * Get the item type
  *
  * @param   string  $as  Return type as?
  * @return  string
  */
 public function type($as = null)
 {
     if ($as == 'title') {
         return Lang::txt('Knowledge base article');
     }
     return parent::type($as);
 }
コード例 #3
0
ファイル: wiki.php プロジェクト: mined-gatech/hubzero-cms
 /**
  * Get the item type
  *
  * @param   string  $as  Return type as?
  * @return  string
  */
 public function type($as = null)
 {
     if ($as == 'title') {
         return Lang::txt('Wiki page');
     }
     return parent::type($as);
 }
コード例 #4
0
ファイル: blog.php プロジェクト: mined-gatech/hubzero-cms
 /**
  * Get the item type
  *
  * @param   string  $as  Return type as?
  * @return  string
  */
 public function type($as = null)
 {
     if ($as == 'title') {
         return Lang::txt('Blog post');
     }
     return parent::type($as);
 }