Exemplo n.º 1
0
 public function getCommentPostList($postId)
 {
     try {
         $postDAO = new PostDAO();
         $commentList = $postDAO->getCommentListByPostId($postId);
         return $commentList;
     } catch (PDOException $pdoe) {
         throw $pdoe;
     } catch (UserNotAuthenticatedExceptionDTO $authExp) {
         throw $authExp;
     } catch (Exception $e) {
         throw $e;
     }
 }