Esempio n. 1
0
 /**
  * Display comment detail view
  */
 public function showAction()
 {
     $this->view->comment = $this->comment;
     if ($this->hasPermission('monitoring/command/comment/delete')) {
         $listUrl = Url::fromPath('monitoring/list/comments')->setQueryString('comment_type=(comment|ack)');
         $form = new DeleteCommentCommandForm();
         $form->populate(array('comment_id' => $this->comment->id, 'comment_is_service' => isset($this->comment->service_description), 'redirect' => $listUrl))->handleRequest();
         $this->view->delCommentForm = $form;
     }
 }