static function displayTabContentForPDF(PluginPdfSimplePDF $pdf, CommonGLPI $item, $tab) { if ($item->getType() == 'PluginProjetProjet') { if ($tab == 1) { PluginProjetProjet_Projet::pdfHierarchyForProjet($pdf, $item); PluginProjetProjet_Projet::pdfHierarchyForProjet($pdf, $item, 1); } else { if ($tab == 2) { self::pdfGanttForProjet($pdf, $item); } else { if ($tab == 3) { PluginProjetProjet_Item::pdfForProjet($pdf, $item); } } } } else { return false; } return true; }