Exemplo n.º 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;
 }
 /**
  * Handle a command form
  *
  * @param   ObjectsCommandForm $form
  *
  * @return  ObjectsCommandForm
  */
 protected function handleCommandForm(ObjectsCommandForm $form)
 {
     $form->setBackend($this->backend)->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->view->tabs->remove('menu-entry');
     $this->_helper->viewRenderer('partials/command/object-command-form', null, true);
     return $form;
 }