/**
* @see CommonGLPI::getTabNameForItem()
**/
function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
{
switch ($item->getType()) {
case 'User':
if (!$withtemplate) {
$nb = 0;
if ($_SESSION['glpishow_count_on_tabs']) {
$nb = self::countForUserLicense($item->getID());
}
return array(1 => self::createTabEntry(SoftwareLicense::getTypeName(2), $nb));
}
break;
}
return '';
}