static function displayTabContentForPDF(PluginPdfSimplePDF $pdf, CommonGLPI $item, $tab)
 {
     if ($item->getType() == 'PluginWebapplicationsWebapplication') {
         self::ItemsPdf($pdf, $item);
     } else {
         if (in_array($item->getType(), PluginWebapplicationsWebapplication::getTypes(true))) {
             self::PdfFromItems($pdf, $item);
         } else {
             return false;
         }
     }
     return true;
 }
예제 #2
0
function plugin_webapplications_postinit()
{
    global $CFG_GLPI, $PLUGIN_HOOKS;
    $PLUGIN_HOOKS['item_purge']['webapplications'] = array();
    foreach (PluginWebapplicationsWebapplication::getTypes(true) as $type) {
        $PLUGIN_HOOKS['item_purge']['webapplications'][$type] = array('PluginWebapplicationsWebapplication_Item', 'cleanForItem');
        CommonGLPI::registerStandardTab($type, 'PluginWebapplicationsWebapplication_Item');
    }
}