Пример #1
0
 static function displayTabContentForPDF(PluginPdfSimplePDF $pdf, CommonGLPI $item, $tab)
 {
     switch ($tab) {
         case 'Computer_SoftwareVersion$1':
             PluginPdfComputer_SoftwareVersion::pdfForVersionByEntity($pdf, $item);
             break;
         case 'Computer_SoftwareVersion$2':
             PluginPdfComputer_SoftwareVersion::pdfForItem($pdf, $item);
             break;
         default:
             return false;
     }
     return true;
 }