static function displayTabContentForPDF(PluginPdfSimplePDF $pdf, CommonGLPI $item, $tab)
 {
     switch ($tab) {
         case 'Document$1':
             PluginPdfDocument::pdfForItem($pdf, $item);
             break;
         default:
             return false;
     }
     return true;
 }
Example #2
0
 /**
  * export Tab content - classic content use by various object
  *
  * @since version 0.83
  *
  * @param $pdf          PluginPdfSimplePDF object for output
  * @param $item         CommonGLPI object for which the tab need to be displayed
  * @param $tab   string tab number
  *
  * @return true if display done (else will search for another handler)
  **/
 static final function displayCommonTabForPDF(PluginPdfSimplePDF $pdf, CommonGLPI $item, $tab)
 {
     switch ($tab) {
         case '_main_':
             static::pdfMain($pdf, $item);
             break;
         case 'Note':
             self::pdfNote($pdf, $item);
             break;
         case 'Document$1':
             PluginPdfDocument::pdfForItem($pdf, $item);
             break;
         case 'NetworkPort$1':
             PluginPdfNetworkPort::pdfForItem($pdf, $item);
             break;
         case 'Infocom$1':
             PluginPdfInfocom::pdfForItem($pdf, $item);
             break;
         case 'Contract_Item$1':
             PluginPdfContract_Item::pdfForItem($pdf, $item);
             break;
         case 'Ticket$1':
             PluginPdfTicket::pdfForItem($pdf, $item);
             break;
         case 'Link$1':
             PluginPdfLink::pdfForItem($pdf, $item);
             break;
         case 'Reservation$1':
             PluginPdfReservation::pdfForItem($pdf, $item);
             break;
         case 'Log$1':
             PluginPdfLog::pdfForItem($pdf, $item);
             break;
         default:
             return false;
     }
     return true;
 }
Example #3
0
 static function displayTabContentForPDF(PluginPdfSimplePDF $pdf, CommonGLPI $item, $tab)
 {
     switch ($tab) {
         case 'Item_Devices$1':
             self::pdfDevice($pdf, $item);
             break;
         case 'ComputerDisk$1':
             PluginPdfComputerDisk::pdfForComputer($pdf, $item);
             break;
         case 'Computer_SoftwareVersion$1':
             PluginPdfComputer_SoftwareVersion::pdfForComputer($pdf, $item);
             break;
         case 'Computer_Item$1':
             PluginPdfComputer_Item::pdfForComputer($pdf, $item);
             break;
         case 'Document_Item$1':
             PluginPdfDocument::pdfForItem($pdf, $item);
             break;
         case 'ComputerVirtualMachine$1':
             PluginPdfComputerVirtualMachine::pdfForComputer($pdf, $item);
             break;
         case 'RegistryKey$1':
             PluginPdfRegistryKey::pdfForComputer($pdf, $item);
             break;
         default:
             return false;
     }
     return true;
 }