static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == __CLASS__) {
         switch ($tabnum) {
             case 1:
                 $item->showValuesByEntity();
                 break;
             case 2:
                 $item->showItems();
                 break;
         }
     }
     return true;
 }
예제 #2
0
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     global $CFG_GLPI;
     switch ($item->getType()) {
         case __CLASS__:
             $item->showItems($tabnum == 2);
             return true;
         case 'Preference':
             $user = new self();
             $user->showMyForm($CFG_GLPI['root_doc'] . "/front/preference.php", Session::getLoginUserID());
             return true;
     }
     return false;
 }
예제 #3
0
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     switch ($item->getType()) {
         case 'Group':
             switch ($tabnum) {
                 case 1:
                     $item->showItems(false);
                     return true;
                 case 2:
                     $item->showItems(true);
                     return true;
                 case 3:
                     $item->showLDAPForm($item->getID());
                     return true;
                 case 4:
                     $item->showChildren();
                     return true;
             }
             break;
     }
     return false;
 }