Class Zend_Service_Flickr

Description
  • license: Zend
  • copyright: Copyright (c) 2005-2006 Zend Technologies Inc. (http://www.zend.com)

Located in /Zend/Service/Flickr.php (line 59)


	
			
Variable Summary
Method Summary
 Zend_Service_Flickr __construct (string $apiKey)
 integer getIdByEmail (string $email)
 integer getIdByUsername (string $username)
 Zend_Service_Flickr_ResultSet tagSearch (mixed $query, [array $options = null])
 Zend_Service_Flickr_ResultSet|boolean userSearch (string $query, [array $options = null])
 void _checkErrors (DomDocument $dom)
 void _compareOptions (array $options, array $validOptions)
 array _prepareOptions (string $method, array $options, array $defaultOptions)
 void _validateTagSearch (array $options)
 void _validateUserSearch (array $options)
Variables
string $apiKey (line 66)

Your Flickr API key

  • access: public
Zend_Service_Rest $_rest (line 73)

Zend_Service_Rest Object

  • access: protected
Methods
Constructor __construct (line 80)

Zend_Service_Flickr Constructor, setup character encoding

  • access: public
Zend_Service_Flickr __construct (string $apiKey)
  • string $apiKey: Your Flickr API key
getIdByEmail (line 318)

Utility function to find Flickr User IDs for emails.

(You can only find a user's photo with their NSID.)

  • return: the NSID (userid)
  • access: public
integer getIdByEmail (string $email)
  • string $email: the email
getIdByUsername (line 285)

Utility function to find Flickr User IDs for usernames.

(You can only find a user's photo with their NSID.)

  • return: the NSID (userid)
  • access: public
integer getIdByUsername (string $username)
  • string $username: the username
getImageDetails (line 348)

Utility function to find Flickr photo details by ID.

  • return: the details for the specified image
  • access: public
Zend_Service_Flickr_Image getImageDetails (string $id)
  • string $id: the NSID
tagSearch (line 109)

Find Flickr photos by tag.

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
  • tag_mode: whether to 'any' or 'and' tags. 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.

  • access: public
Zend_Service_Flickr_ResultSet tagSearch (mixed $query, [array $options = null])
  • mixed $query: A single tag or an array of tags.
  • array $options: Additional parameters to refine your query.
userSearch (line 156)

Find Flickr 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.

  • access: public
Zend_Service_Flickr_ResultSet|boolean userSearch (string $query, [array $options = null])
  • string $query: username
  • array $options: Additional parameters to refine your query.
_checkErrors (line 377)

Check Result for Errors

  • access: protected
  • static:
  • throws: Zend_Service_Exception
void _checkErrors (DomDocument $dom)
  • DomDocument $dom
_compareOptions (line 411)

Check whether the user options are valid

  • access: protected
void _compareOptions (array $options, array $validOptions)
  • array $options: User options
  • array $validOptions: Valid options
_prepareOptions (line 396)

Prepare options for the request

  • return: Merged array of user and default/required options
  • access: protected
array _prepareOptions (string $method, array $options, array $defaultOptions)
  • string $method: Flickr Method to call
  • array $options: User Options
  • array $defaultOptions: Default Options
_validateTagSearch (line 243)

Validate Tag Search Options

  • access: protected
void _validateTagSearch (array $options)
  • array $options
_validateUserSearch (line 205)

Validate User Search Options

  • access: protected
void _validateUserSearch (array $options)
  • array $options

Documentation generated on Tue, 18 Apr 2006 11:55:04 -0700 by phpDocumentor 1.3.0RC3