Zend Framework
1.12
|
Public Member Functions | |
__construct ($apiKey) | |
Performs object initializations. | |
tagSearch ($query, array $options=array()) | |
Find Flickr photos by tag. | |
userSearch ($query, array $options=null) | |
Finds photos by a user's username or email. | |
groupPoolGetPhotos ($query, array $options=array()) | |
Finds photos in a group's pool. | |
getIdByUsername ($username) | |
Utility function to find Flickr User IDs for usernames. | |
getIdByEmail ($email) | |
Utility function to find Flickr User IDs for emails. | |
getImageDetails ($id) | |
Returns Flickr photo details by for the given photo ID. | |
getRestClient () | |
Returns a reference to the REST client, instantiating it if necessary. | |
Public Attributes | |
const | URI_BASE = 'http://www.flickr.com' |
Base URI for the REST client. | |
$apiKey | |
Protected Member Functions | |
_validateUserSearch (array $options) | |
Validate User Search Options. | |
_validateTagSearch (array $options) | |
Validate Tag Search Options. | |
_validateGroupPoolGetPhotos (array $options) | |
Validate Group Search Options. | |
_prepareOptions ($method, array $options, array $defaultOptions) | |
Prepare options for the request. | |
_compareOptions (array $options, array $validOptions) | |
Throws an exception if and only if any user options are invalid. | |
Static Protected Member Functions | |
static | _checkErrors (DOMDocument $dom) |
Throws an exception if and only if the response status indicates a failure. | |
Protected Attributes | |
$_restClient = null | |
__construct | ( | $apiKey | ) |
Performs object initializations.
# Sets up character encoding # Saves the API key
string | $apiKey | Your Flickr API key |
|
staticprotected |
Throws an exception if and only if the response status indicates a failure.
DOMDocument | $dom |
Zend_Service_Exception |
|
protected |
Throws an exception if and only if any user options are invalid.
array | $options | User options |
array | $validOptions | Valid options |
Zend_Service_Exception |
|
protected |
Prepare options for the request.
string | $method | Flickr Method to call |
array | $options | User Options |
array | $defaultOptions | Default Options |
|
protected |
Validate Group Search Options.
array | $options |
Zend_Service_Exception |
|
protected |
Validate Tag Search Options.
array | $options |
Zend_Service_Exception |
|
protected |
Validate User Search Options.
array | $options |
Zend_Service_Exception |
getIdByEmail | ( | ) |
Utility function to find Flickr User IDs for emails.
(You can only find a user's photo with their NSID.)
string | the email |
Zend_Service_Exception |
getIdByUsername | ( | $username | ) |
Utility function to find Flickr User IDs for usernames.
(You can only find a user's photo with their NSID.)
string | $username | the username |
Zend_Service_Exception |
getImageDetails | ( | $id | ) |
Returns Flickr photo details by for the given photo ID.
string | $id | the NSID |
Zend_Service_Exception |
getRestClient | ( | ) |
Returns a reference to the REST client, instantiating it if necessary.
groupPoolGetPhotos | ( | $query, | |
array | $options = array() |
||
) |
Finds photos in a group's pool.
string | $query | group id |
array | $options | Additional parameters to refine your query. |
Zend_Service_Exception |
tagSearch | ( | $query, | |
array | $options = array() |
||
) |
Find 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.
string | array | $query | A single tag or an array of tags. |
array | $options | Additional parameters to refine your query. |
Zend_Service_Exception |
userSearch | ( | $query, | |
array | $options = null |
||
) |
Finds 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.
string | $query | username or email |
array | $options | Additional parameters to refine your query. |
Zend_Service_Exception |
|
protected |
$apiKey |
const URI_BASE = 'http://www.flickr.com' |
Base URI for the REST client.