Exemplo n.º 1
0
   function manageServices($itemtype, $items_id) {

      if ($itemtype == 'Computer') {
         $pmHostaddress = new PluginMonitoringHostaddress();
         $item = new $itemtype();
         if ($item->can($items_id, UPDATE)) {
            $pmHostaddress->showForm($items_id, $itemtype);
         }
      }
      $pmServices = new PluginMonitoringService();
      $pmServices->listByHost($itemtype, $items_id);
   }