Esempio n. 1
0
 /**
  * Returns topics last reply info
  * 
  * @param array $postIds
  * @return array
  */
 public function getTopicLastReplyList($postIds)
 {
     $postDtoList = $this->postDao->findByIdList($postIds);
     $postList = array();
     foreach ($postDtoList as $postDto) {
         $postInfo = array('postId' => $postDto->id, 'topicId' => $postDto->topicId, 'userId' => $postDto->userId, 'text' => strip_tags($postDto->text), 'createStamp' => UTIL_DateTime::formatDate($postDto->createStamp));
         $postList[$postDto->topicId] = $postInfo;
     }
     return $postList;
 }
 public function findPostListByIds($postIdList)
 {
     return $this->postDao->findByIdList($postIdList);
 }