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;
 }
Example #2
0
 static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     $self = new self();
     if ($item->getType() == __CLASS__) {
         self::showAddPosition($item);
     } else {
         if ($item->getType() == "Location") {
             Document_Item::showForItem($item, $withtemplate);
         } else {
             if (in_array($item->getType(), self::getTypes(true))) {
                 $self->showPluginFromItems(get_class($item), $item->getField('id'));
             }
         }
     }
     return true;
 }
Example #3
0
 public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
 {
     if (get_class($item) == 'PluginOrderOrder') {
         if (!$item->fields['is_template']) {
             $order_item = new self();
             $order_item->showItem($item->getID());
         }
     } else {
         if (in_array($item->getType(), PluginOrderOrder_Item::getClasses(true))) {
             $order_item = new self();
             $order_item->showPluginFromItems(get_class($item), $item->getField('id'));
         }
     }
     return true;
 }
Example #4
0
 public static function showForInfocom(CommonDBTM $item)
 {
     $order_item = new self();
     $order_item->showPluginFromItems(get_class($item), $item->getField('id'));
 }