static function getItemTypeTabsURL($itemtype, $full = true) { global $CFG_GLPI; $filename = "/ajax/common.tabs.php"; return ($full ? $CFG_GLPI['root_doc'] : '') . $filename; }
public function showTab($itemtype) { $url = Toolbox::getItemTypeTabsURL($itemtype); $params = array('id' => $_GET['id'], 'glpi_tab' => $_GET['glpi_tab'], 'target' => $_SERVER['PHP_SELF']); $this->showUrl($url, $params); }