canCreate() static public method

static public canCreate ( )
コード例 #1
0
ファイル: knowbase.class.php プロジェクト: geldarr/hack-space
 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getType() == __CLASS__) {
         $tabs[1] = _x('button', 'Search');
         $tabs[2] = _x('button', 'Browse');
         if (KnowbaseItem::canCreate()) {
             $tabs[3] = _x('button', 'Manage');
         }
         return $tabs;
     }
     return '';
 }