/** * @param int Return photos only matching a certain privacy level. This only applies when making * an authenticated call to view a photoset you own. Valid values are: * 1 public photos * 2 private photos visible to friends * 3 private photos visible to family * 4 private photos visible to friends & family * 5 completely private photos * * @return FlickrPhoto[] */ public function getPhotos($privacy_filter = 1) { $res = FlickrService::$instance->call('flickr.photosets.getPhotos', array('photoset_id' => $this->id, 'privacy_filter' => $privacy_filter, 'extras' => FlickrPhoto::$std_extras)); return FlickrPhoto::valueOfCollection($res->dom['photoset'][0]['photo']); }
/** * @param int Number of photos to return per page. If this argument is omitted, it defaults to 100. * The maximum allowed value is 500. * * @param int The page of results to return. If this argument is omitted, it defaults to 1. * * @param string A comma-delimited list of extra information to fetch for each returned record. * Currently supported fields are: license, date_upload, date_taken, owner_name, * icon_server, original_format, last_update. * * @return FlickrPhoto[] */ public function getPublicPhotos($per_page = 100, $page = 1) { $res = FlickrService::$instance->call('flickr.people.getPublicPhotos', array('user_id' => $this->id, 'per_page' => $per_page, 'page' => $page, 'extras' => FlickrPhoto::$std_extras)); return FlickrPhoto::valueOfCollection($res->dom['photos'][0]['photo']); }