static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { if ($item->getID() > -1) { $pmEntity = new PluginMonitoringEntity(); $pmHostconfig = new PluginMonitoringHostconfig(); $pmHostconfig->showForm($item->getID(), "Entity"); $pmEntity->showForm($item->fields['id']); } return true; }
function plugin_headings_monitoring_entitytag($item) { $pmEntity = new PluginMonitoringEntity(); $pmHostconfig = new PluginMonitoringHostconfig(); $pmHostconfig->showForm($item->getID(), "Entity"); $pmEntity->showForm($item->fields['id']); }