Esempio n. 1
0
 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getType() == 'Profile') {
         if ($item->getField('interface') == 'central') {
             return PluginUninstallUninstall::getTypeName();
         }
     }
     return '';
 }
Esempio n. 2
0
 function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
 {
     if ($item->getType() == 'Preference' && Session::haveRight(PluginUninstallProfile::$rightname, READ)) {
         return PluginUninstallUninstall::getTypeName();
     }
     return '';
 }
Esempio n. 3
0
 /**
  * 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 '';
 }