static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { switch ($item->getType()) { case 'Ticket': self::showForTicket($item); break; case 'Problem': self::showForProblem($item); break; } return true; }