Exemplo n.º 1
0
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item instanceof CommonTreeDropdown) {
         $item->showChildren();
     }
     return true;
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
0
 /**
  * @since version 0.84 (before in entitydata.class)
  **/
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == __CLASS__) {
         switch ($tabnum) {
             case 1:
                 $item->showChildren();
                 break;
             case 2:
                 self::showStandardOptions($item);
                 break;
             case 3:
                 self::showAdvancedOptions($item);
                 break;
             case 4:
                 self::showNotificationOptions($item);
                 break;
             case 5:
                 self::showHelpdeskOptions($item);
                 break;
             case 6:
                 self::showInventoryOptions($item);
                 break;
         }
     }
     return true;
 }
Exemplo n.º 4
0
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     switch ($item->getType()) {
         case __CLASS__:
             switch ($tabnum) {
                 case 1:
                     $item->showChildren();
                     break;
                 case 2:
                     $item->showGantt($item->getID());
                     break;
             }
             break;
     }
     return true;
 }
Exemplo n.º 5
0
 /**
  * @since version 0.85
  **/
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if ($item->getType() == __CLASS__) {
         switch ($tabnum) {
             case 1:
                 $item->showChildren();
                 break;
             case 2:
                 $item->showItems();
                 break;
         }
     }
     return true;
 }