params->get('downtime_id'); $this->downtime = $this->backend->select()->from('downtime', array( 'id' => 'downtime_internal_id', 'objecttype' => 'downtime_objecttype', 'comment' => 'downtime_comment', 'author_name' => 'downtime_author_name', 'start' => 'downtime_start', 'scheduled_start' => 'downtime_scheduled_start', 'scheduled_end' => 'downtime_scheduled_end', 'end' => 'downtime_end', 'duration' => 'downtime_duration', 'is_flexible' => 'downtime_is_flexible', 'is_fixed' => 'downtime_is_fixed', 'is_in_effect' => 'downtime_is_in_effect', 'entry_time' => 'downtime_entry_time', 'host_state' => 'downtime_host_state', 'service_state' => 'downtime_service_state', 'host_name', 'host', 'service', 'service_description', 'host_display_name', 'service_display_name' ))->where('downtime_internal_id', $downtimeId)->getQuery()->fetchRow(); $this->getTabs() ->add( 'downtime', array( 'title' => $this->translate( 'Display detailed information about a downtime.' ), 'icon' => 'plug', 'label' => $this->translate('Downtime'), 'url' =>'monitoring/downtimes/show' ) )->activate('downtime')->extend(new DashboardAction()); } public function showAction() { $this->view->downtime = $this->downtime; $this->view->delDowntimeForm = new DeleteDowntimeCommandForm(); $this->view->delDowntimeForm->setObjects($this->downtime); $this->view->listAllLink = Url::fromPath('monitoring/list/downtimes'); $this->view->showHostLink = Url::fromPath('monitoring/host/show') ->setParam('host', $this->downtime->host); $this->view->showServiceLink = Url::fromPath('monitoring/service/show') ->setParam('host', $this->downtime->host) ->setParam('service', $this->downtime->service_description); } }