Toolbox::getItemTypeTabsURL PHP Méthode

getItemTypeTabsURL() static public méthode

Get ajax tabs url for itemtype
static public getItemTypeTabsURL ( $itemtype, $full = true )
$itemtype string item type
$full path or relative one (true by default) return string itemtype tabs URL
    static function getItemTypeTabsURL($itemtype, $full = true)
    {
        global $CFG_GLPI;
        $filename = "/ajax/common.tabs.php";
        return ($full ? $CFG_GLPI['root_doc'] : '') . $filename;
    }

Usage Example

Exemple #1
0
 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);
 }
All Usage Examples Of Toolbox::getItemTypeTabsURL