/** * Shows a list of comments * * @param \Lelesys\Plugin\News\Domain\Model\News $news The News * @param array $filterFlag The active flag * @param string $selected The select value for comment filter * @return void */ public function indexAction(\Lelesys\Plugin\News\Domain\Model\News $news = NULL, $filterFlag = NULL, $selected = NULL) { $this->view->assign('selectVal', $selected); if ($news !== NULL) { $this->view->assign('comments', $this->commentService->getCommentsByNews($news)); } else { $this->view->assign('comments', $this->commentService->listAllCommentsAdmin($filterFlag)); } $this->view->assign('folders', $this->folderService->listAll()); }