/** * Display the configuration snapshot of a host * with template inheritance * * @method get * @route /hosttemplate/snapshotslide/[i:id] */ public function snapshotslideAction() { $params = $this->getParams(); $data = HostTemplateRepository::getInheritanceValues($params['id'], true); $host = HostTemplate::get($params['id'], 'host_name'); $data['host_name'] = $host['host_name']; $data['icon'] = HostRepository::getIconImage($data['host_name']); $hostConfiguration = HostRepository::formatDataForSlider($data); /* $aDataRealTime = HostRealtime::get($params['id']); $hostReal = HostRepository::formatDataForSlider($aDataRealTime); $servicesStatus = ServiceRealTimeRepository::countAllStatusForHost($params['id']); */ $edit_url = $this->router->getPathFor("/centreon-configuration/hosttemplate/" . $params['id']); $this->router->response()->json(array('hostConfig' => $hostConfiguration, 'edit_url' => $edit_url, 'success' => true)); }