Пример #1
0
 private function getSelectForums()
 {
     $data = null;
     try {
         $data = $this->forumService->getSelectForums();
     } catch (Exceptions\DataErrorException $ex) {
         $this->handleDataLoad(null, ":System:Default:adminRoot", $ex);
     }
     return $data;
 }
Пример #2
0
 public function deleteComment(ForumThreadComment $comm)
 {
     try {
         $this->forumService->deleteComment($comm, $this->getEntity());
     } catch (Exceptions\DataErrorException $ex) {
         $this->handleDataDelete($comm->getId(), "this", $ex);
     }
     if ($this->isAjax()) {
         $this->redrawControl("commentsData");
     } else {
         $this->redirect("this");
     }
 }