Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
URI_BASE = 'http://www.flickr.com'
Base URI for the REST client
DetailsZend_Rest_Client $_restClient = 'null'Reference to REST client object
Detailsstring $apiKey = ''Your Flickr API key
Details__construct(
string $apiKey
)
:
voidPerforms object initializations
# Saves the API key
Details_checkErrors(
DOMDocument $dom
)
:
voidThrows an exception if and only if the response status indicates a failure
Details_compareOptions(
array $options, array $validOptions
)
:
voidThrows an exception if and only if any user options are invalid
Details_prepareOptions(
string $method, array $options, array $defaultOptions
)
:
arrayPrepare options for the request
Details_validateGroupPoolGetPhotos(
array $options
)
:
voidValidate Group Search Options
Details_validateTagSearch(
array $options
)
:
voidValidate Tag Search Options
Details_validateUserSearch(
array $options
)
:
voidValidate User Search Options
DetailsgetIdByEmail(
string $email
)
:
stringUtility function to find Flickr User IDs for emails.
(You can only find a user's photo with their NSID.)
DetailsgetIdByUsername(
string $username
)
:
stringUtility function to find Flickr User IDs for usernames.
(You can only find a user's photo with their NSID.)
DetailsgetImageDetails(
string $id
)
:
arrayReturns Flickr photo details by for the given photo ID
DetailsgetRestClient(
)
:
Zend_Rest_ClientReturns a reference to the REST client, instantiating it if necessary
DetailsgroupPoolGetPhotos(
string $query, array $options
=
array
)
:
Zend_Service_Flickr_ResultSetFinds photos in a group's pool.
DetailstagSearch(
string|array $query, array $options
=
array
)
:
Zend_Service_Flickr_ResultSetFind Flickr photos by tag.
Query options include:
# per_page: how many results to return per query # page: the starting page offset. first result will be (page - 1) * per_page + 1 # tag_mode: Either 'any' for an OR combination of tags, or 'all' for an AND combination. Default is 'any'. # min_upload_date: Minimum upload date to search on. Date should be a unix timestamp. # max_upload_date: Maximum upload date to search on. Date should be a unix timestamp. # min_taken_date: Minimum upload date to search on. Date should be a MySQL datetime. # max_taken_date: Maximum upload date to search on. Date should be a MySQL datetime.
DetailsuserSearch(
string $query, array $options
=
null
)
:
Zend_Service_Flickr_ResultSetFinds photos by a user's username or email.
Additional query options include:
# per_page: how many results to return per query # page: the starting page offset. first result will be (page - 1) * per_page + 1 # min_upload_date: Minimum upload date to search on. Date should be a unix timestamp. # max_upload_date: Maximum upload date to search on. Date should be a unix timestamp. # min_taken_date: Minimum upload date to search on. Date should be a MySQL datetime. # max_taken_date: Maximum upload date to search on. Date should be a MySQL datetime.
Details