function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
{
if (!$withtemplate && self::canView()) {
$nb = 0;
switch ($item->getType()) {
case 'Project':
if ($_SESSION['glpishow_count_on_tabs']) {
$nb = $item->getTeamCount();
}
return self::createTabEntry(self::getTypeName(1), $nb);
}
}
return '';
}