function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { if ($item->getType() == 'Profile') { if ($item->getField('interface') == 'central') { return PluginUninstallUninstall::getTypeName(); } } return ''; }
function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { if ($item->getType() == 'Preference' && Session::haveRight(PluginUninstallProfile::$rightname, READ)) { return PluginUninstallUninstall::getTypeName(); } return ''; }
/** * Définition du nom de l'onglet **/ function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) { switch ($item->getType()) { case 'Preference': return PluginUninstallUninstall::getTypeName(1); case __CLASS__: $tab = array(); $tab[1] = self::getTypeName(1); $tab[2] = __('Replacing data', 'uninstall'); return $tab; } return ''; }