I am reading this page about Zend_Service_Flickr. However it does not say how to set up the number of photos showing.
The following code returns 10 images.
Zend_Loader::loadClass('Zend_Service_Flickr');
$flickr = new Zend_Service_Flickr($this->flickrapikey);
$results = $flickr->userSearch($this->flickemail);
Could anyone tell me how to set it up please?
Thanks in advance.
If you take a look at the code source of
Zend_Service_Flickr::userSearch(see here for instance), you’ll notice it starts with this piece of code :This should be enough to help you understand how to specify how many photos you’d like to get : you probably just have to pass an array as second parameter, containing an entry with the key “
per_page“, and the value you want.Somethong like this, I suppose (not tried, though) :
When the documentation is not good enough, don’t hesitate to take a look at the code 😉