Example #1
0
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     $self = new self();
     if ($item->getType() == 'PluginResourcesTask') {
         $self->showItemFromPlugin($item->getID(), $withtemplate);
     }
     return true;
 }
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     global $CFG_GLPI;
     $self = new self();
     if ($item->getType() == 'PluginRacksRack') {
         switch ($tabnum) {
             case 1:
                 $self->showItemFromPlugin($item->getField('id'), PluginRacksRack::FRONT_FACE);
                 return true;
             case 2:
                 $self->showItemFromPlugin($item->getField('id'), PluginRacksRack::BACK_FACE);
                 return true;
         }
     } else {
         if (in_array($item->getType(), PluginRacksRack::getTypes(true))) {
             self::showForItem($item);
             $self->showform($CFG_GLPI["root_doc"] . "/plugins/racks/front/rack_item.form.php", $item->getField('id'), get_class($item));
         }
     }
     return true;
 }
 public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     $PluginConnectionsConnection_Item = new self();
     if ($item->getType() == 'PluginConnectionsConnection') {
         $PluginConnectionsConnection_Item->showItemFromPlugin($item->getID());
     } else {
         if (in_array($item->getType(), self::getClasses(true))) {
             $PluginConnectionsConnection_Item->showPluginFromItems($item->getType(), $item->getID());
         }
     }
     return true;
 }