コード例 #1
0
ファイル: AdminPresenter.php プロジェクト: fuca/sportsclub
 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
ファイル: ForumPresenter.php プロジェクト: fuca/sportsclub
 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");
     }
 }