Пример #1
0
 protected function handleCommandForm(ObjectsCommandForm $form)
 {
     $form->setBackend($this->backend)->setObjects($this->hostList)->setRedirectUrl(Url::fromPath('monitoring/hosts/show')->setParams($this->params))->handleRequest();
     $this->view->form = $form;
     $this->view->objects = $this->hostList;
     $this->view->stats = $this->hostList->getStateSummary();
     $this->_helper->viewRenderer('partials/command/objects-command-form', null, true);
     return $form;
 }
Пример #2
0
 protected function handleCommandForm(ObjectsCommandForm $form)
 {
     $this->hostList->setColumns(array('host_acknowledged', 'host_active_checks_enabled', 'host_display_name', 'host_handled', 'host_in_downtime', 'host_is_flapping', 'host_last_state_change', 'host_name', 'host_notifications_enabled', 'host_passive_checks_enabled', 'host_problem', 'host_state'));
     $form->setObjects($this->hostList)->setRedirectUrl(Url::fromPath('monitoring/hosts/show')->setParams($this->params))->handleRequest();
     $this->view->form = $form;
     $this->view->objects = $this->hostList;
     $this->view->stats = $this->hostList->getStateSummary();
     $this->_helper->viewRenderer('partials/command/objects-command-form', null, true);
     return $form;
 }
Пример #3
0
 protected function handleCommandForm(ObjectsCommandForm $form)
 {
     $this->serviceList->setColumns(array('host_icon_image', 'host_icon_image_alt', 'host_name', 'host_address', 'host_output', 'host_state', 'host_problem', 'host_handled', 'service_icon_image', 'service_icon_image_alt', 'service_description', 'service_state', 'service_problem', 'service_handled', 'service_acknowledged', 'service_in_downtime', 'service_is_flapping', 'service_output', 'service_notifications_enabled', 'service_active_checks_enabled', 'service_passive_checks_enabled'));
     $form->setObjects($this->serviceList)->setRedirectUrl(Url::fromPath('monitoring/services/show')->setParams($this->params))->handleRequest();
     $this->view->form = $form;
     $this->view->objects = $this->serviceList;
     $this->view->stats = $this->serviceList->getServiceStateSummary();
     $this->view->serviceStates = true;
     $this->_helper->viewRenderer('partials/command/objects-command-form', null, true);
     return $form;
 }
 /**
  * Handle a command form
  *
  * @param   ObjectsCommandForm $form
  *
  * @return  ObjectsCommandForm
  */
 protected function handleCommandForm(ObjectsCommandForm $form)
 {
     $form->setObjects($this->object)->setRedirectUrl(Url::fromPath($this->commandRedirectUrl)->setParams($this->params))->handleRequest();
     $this->view->form = $form;
     $this->view->object = $this->object;
     $this->view->tabs->remove('dashboard');
     $this->_helper->viewRenderer('partials/command/object-command-form', null, true);
     return $form;
 }