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; }
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; }
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; }
public static function showForInfocom(CommonDBTM $item) { $order_item = new self(); $order_item->showPluginFromItems(get_class($item), $item->getField('id')); }