Exemple #1
0
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == __CLASS__) {
         switch ($tabnum) {
             case 1:
                 // all
                 $item->showMyView();
                 break;
             case 2:
                 $item->showGroupView();
                 break;
             case 3:
                 $item->showGlobalView();
                 break;
             case 4:
                 $item->showRSSView();
                 break;
         }
     }
     return true;
 }