canUpdate() static public method

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