Exemplo n.º 1
0
 public function getPostsListModel($userProfile)
 {
     try {
         $postDAO = new PostDAO();
         $postListDTO = $postDAO->getPostsList($userProfile);
         return $postListDTO;
     } catch (PDOException $pdoe) {
         throw $pdoe;
     } catch (UserNotAuthenticatedExceptionDTO $authExp) {
         throw $authExp;
     } catch (Exception $e) {
         throw $e;
     }
 }