Ejemplo n.º 1
0
 public function findPhotoListByUserIdList(array $userIdList, $page, $limit)
 {
     if (count($userIdList) === 0) {
         return array();
     }
     $first = ($page - 1) * $limit;
     $photos = $this->photoDao->findPhotoListByUserIdList($userIdList, $first, $limit);
     if ($photos) {
         foreach ($photos as $key => $photo) {
             $photos[$key]['url'] = $this->getPhotoUrl($photo['id'], FALSE, $photo['hash']);
         }
     }
     return $photos;
 }