/** * Fonction native GLPI * @param CommonGLPI $item * @param int $tabnum * @param int $withtemplate * @return boolean */ static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == 'Computer') { $profile = new PluginGroupeadProfileold(); if ($profile->estAutorise()) { $groupeAD = new self(); $ID = $item->getField('id'); $Name = $item->getField('name'); // j'affiche le formulaire $groupeAD->showForm($ID, $Name); } } return true; }