static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { global $CFG_GLPI; if ($item->getType() == 'Profile') { $ID = $item->getField('id'); $prof = new self(); if (!$prof->getFromDBByProfile($item->getField('id'))) { $prof->createUserAccess($item); } $prof->showForm($item->getField('id'), array('target' => $CFG_GLPI["root_doc"] . "/plugins/customfields/front/profile.form.php")); } return true; }
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { global $CFG_GLPI; if ($item->getType() == 'Profile') { $ID = $item->getField('id'); $prof = new self(); if ($prof->GetfromDB($ID) || $prof->createUserAccess($item)) { $prof->showForm($ID); } } return true; }