Ejemplo n.º 1
0
 public static function getAllImages($UserId)
 {
     $userPhotos = UserPhotos::model()->findAll('user_id=:UserId', array(':UserId' => $UserId));
     $result = false;
     foreach ($userPhotos as $userPhoto) {
         $result[] = ImageUtils::getImagesDirectoryUrl('profiles', $UserId) . $userPhoto->image;
     }
     return $result;
 }