function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
{
if (!$withtemplate) {
switch ($item->getType()) {
case __CLASS__:
$ong = array();
$ong[1] = $this->getTypeName(Session::getPluralNumber());
$ong[2] = __('Address');
$ong[3] = __('Advanced information');
if (Notification::canView()) {
$ong[4] = _n('Notification', 'Notifications', Session::getPluralNumber());
}
if (Session::haveRightsOr(self::$rightname, array(self::READHELPDESK, self::UPDATEHELPDESK))) {
$ong[5] = __('Assistance');
}
$ong[6] = __('Assets');
return $ong;
}
}
return '';
}