static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getType() == 'Profile') { $prof = new self(); $ID = $item->getField('id'); if (!$prof->getFromDBByProfile($ID)) { $prof->createAccess($item); } $prof->showForm($ID); } return true; }
static function changeProfile() { $prof = new self(); if ($prof->getFromDBByProfile($_SESSION['glpiactiveprofile']['id'])) { $_SESSION["glpi_plugin_mreporting_profile"] = $prof->fields; } else { unset($_SESSION["glpi_plugin_mreporting_profile"]); } }
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 changeProfile() { $prof = new self(); if ($prof->getFromDBByProfile($_SESSION['glpiactiveprofile']['id'])) { $_SESSION["glpi_plugin_environment_profile"] = $prof->fields; } else { unset($_SESSION["glpi_plugin_environment_profile"]); } $_SESSION["glpi_plugin_environment_installed"] = 1; }
static function changeProfile() { $prof = new self(); if ($prof->getFromDBByProfile($_SESSION['glpiactiveprofile']['id'])) { //get User preferences PluginTalkUserpref::loadInSession(); // re-load profile in session (removed in self-service by Session::cleanProfile) $_SESSION['glpiactiveprofile']['plugin_talk_is_active'] = $prof->fields['rights']; } }
public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { $profile = new self(); if (!$profile->getFromDBByProfile($item->getID())) { self::createFirstAccess($item->getID()); $profile->getFromDBByProfile($item->getID()); } $profile->showForm($item->getField('id')); }