static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { switch ($item->getType()) { case 'Problem': Change_Problem::showForProblem($item); break; case 'Ticket': Change_Ticket::showForTicket($item); break; case __CLASS__: switch ($tabnum) { case 1: $item->showAnalysisForm(); break; case 2: $item->showPlanForm(); break; case 3: if (!isset($_POST['load_kb_sol'])) { $_POST['load_kb_sol'] = 0; } $item->showSolutionForm($_POST['load_kb_sol']); break; } break; } return true; }