function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
{
if (!$withtemplate) {
switch ($item->getType()) {
case __CLASS__:
if ($item->fields['interface'] == 'helpdesk') {
$ong[3] = __('Assistance');
// Helpdesk
$ong[4] = __('Life cycles');
$ong[6] = __('Tools');
} else {
$ong[2] = __('Assets');
$ong[3] = __('Assistance');
$ong[4] = __('Life cycles');
$ong[5] = __('Management');
$ong[6] = __('Tools');
$ong[7] = __('Administration');
$ong[8] = __('Setup');
}
return $ong;
}
}
return '';
}