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;
 }
Example #2
0
 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;
 }