public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { if ($item->getType() == 'PluginOrderOrder' && $item->checkIfDetailExists($item->getID(), true) && Session::haveRight('plugin_order_order', READ)) { return self::createTabEntry(_n("Associated item", "Associated items", 2), self::countForOrder($item)); } }
function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { if ($item->getType() == 'PluginOrderOrder') { if ($item->checkIfDetailExists($item->getID(), true)) { return self::createTabEntry(_n("Associated item", "Associated items", 2), self::countForOrder($item)); } } }