Gdata/Photos.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Gdata  
Subpackage
Photos  
Version
$Id$  

\Zend_Gdata_Photos

Package: Zend_Gdata\Photos
Service class for interacting with the Google Photos Data API.
Like other service classes in this module, this class provides access via an HTTP client to Google servers for working with entries and feeds.
Parent(s)
\Zend_Gdata < \Zend_Gdata_App
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Link
http://code.google.com/apis/picasaweb/gdata.html  

Constants

>VConstant  PICASA_BASE_URI = 'https://picasaweb.google.com/data'
>VConstant  PICASA_BASE_FEED_URI = 'https://picasaweb.google.com/data/feed'
>VConstant  AUTH_SERVICE_NAME = 'lh2'
>VConstant  DEFAULT_PROJECTION = 'api'
Default projection when interacting with the Picasa server.
>VConstant  DEFAULT_VISIBILITY = 'all'
The default visibility to filter events by.
>VConstant  DEFAULT_USER = 'default'
The default user to retrieve feeds for.
>VConstant  USER_PATH = 'user'
Path to the user feed on the Picasa server.
>VConstant  ALBUM_PATH = 'albumid'
Path to album feeds on the Picasa server.
>VConstant  PHOTO_PATH = 'photoid'
Path to photo feeds on the Picasa server.
>VConstant  COMMUNITY_SEARCH_PATH = 'all'
The path to the community search feed on the Picasa server.
>VConstant  FEED_LINK_PATH = 'http://schemas.google.com/g/2005#feed'
The path to use for finding links to feeds within entries
>VConstant  KIND_PATH = 'http://schemas.google.com/g/2005#kind'
The path to use for the determining type of an entry

Properties

>VPropertypublicarray $namespaces = array(array('gphoto', 'http://schemas.google.com/photos/2007', 1, 0), array('photo', 'http://www.pheed.com/pheed/', 1, 0), array('exif', 'http://schemas.google.com/photos/exif/2007', 1, 0), array('georss', 'http://www.georss.org/georss', 1, 0), array('gml', 'http://www.opengis.net/gml', 1, 0), array('media', 'http://search.yahoo.com/mrss/', 1, 0))
static
Namespaces used for Zend_Gdata_Photos
Default valuearray(array('gphoto', 'http://schemas.google.com/photos/2007', 1, 0), array('photo', 'http://www.pheed.com/pheed/', 1, 0), array('exif', 'http://schemas.google.com/photos/exif/2007', 1, 0), array('georss', 'http://www.georss.org/georss', 1, 0), array('gml', 'http://www.opengis.net/gml', 1, 0), array('media', 'http://search.yahoo.com/mrss/', 1, 0))Details
Type
array

Methods

methodpublic__construct(\Zend_Http_Client $client = null, string $applicationId = 'MyCompany-MyApp-1.0') : void

Create Zend_Gdata_Photos object

Parameters
NameTypeDescription
$client\Zend_Http_Client

(optional) The HTTP client to use when

     when communicating with the servers.
$applicationIdstring

The identity of the app in the form of Company-AppName-Version

methodpublicdeleteAlbumEntry(\Zend_Gdata_Photos_AlbumEntry $album, boolean $catch) : \void.

Delete an AlbumEntry.

Parameters
NameTypeDescription
$album\Zend_Gdata_Photos_AlbumEntry

The album entry to delete.

$catchboolean

Whether to catch an exception when

       modified and re-delete or throw
Returns
TypeDescription
\void.
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicdeleteCommentEntry(\Zend_Gdata_Photos_CommentEntry $comment, boolean $catch) : \void.

Delete a CommentEntry.

Parameters
NameTypeDescription
$comment\Zend_Gdata_Photos_CommentEntry

The comment entry to delete.

$catchboolean

Whether to catch an exception when

       modified and re-delete or throw
Returns
TypeDescription
\void.
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicdeletePhotoEntry(\Zend_Gdata_Photos_PhotoEntry $photo, boolean $catch) : \void.

Delete a PhotoEntry.

Parameters
NameTypeDescription
$photo\Zend_Gdata_Photos_PhotoEntry

The photo entry to delete.

$catchboolean

Whether to catch an exception when

       modified and re-delete or throw
Returns
TypeDescription
\void.
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicdeleteTagEntry(\Zend_Gdata_Photos_TagEntry $tag, boolean $catch) : \void.

Delete a TagEntry.

Parameters
NameTypeDescription
$tag\Zend_Gdata_Photos_TagEntry

The tag entry to delete.

$catchboolean

Whether to catch an exception when

       modified and re-delete or throw
Returns
TypeDescription
\void.
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicgetAlbumEntry(mixed $location) : \Zend_Gdata_Photos_AlbumEntry

Retreive a single AlbumEntry object.

Parameters
NameTypeDescription
$locationmixed

The location for the feed, as a URL or Query.

Returns
TypeDescription
\Zend_Gdata_Photos_AlbumEntry
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicgetAlbumFeed(mixed $location = null) : \Zend_Gdata_Photos_AlbumFeed

Retreive AlbumFeed object containing multiple PhotoEntry or TagEntry objects.

Parameters
NameTypeDescription
$locationmixed

(optional) The location for the feed, as a URL or Query.

Returns
TypeDescription
\Zend_Gdata_Photos_AlbumFeed
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicgetCommentEntry(mixed $location) : \Zend_Gdata_Photos_CommentEntry

Retreive a single CommentEntry object.

Parameters
NameTypeDescription
$locationmixed

The location for the feed, as a URL or Query.

Returns
TypeDescription
\Zend_Gdata_Photos_CommentEntry
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicgetPhotoEntry(mixed $location) : \Zend_Gdata_Photos_PhotoEntry

Retreive a single PhotoEntry object.

Parameters
NameTypeDescription
$locationmixed

The location for the feed, as a URL or Query.

Returns
TypeDescription
\Zend_Gdata_Photos_PhotoEntry
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicgetPhotoFeed(mixed $location = null) : \Zend_Gdata_Photos_PhotoFeed

Retreive PhotoFeed object containing comments and tags associated with a given photo.

Parameters
NameTypeDescription
$locationmixed

(optional) The location for the feed, as a URL

     or Query. If not specified, the community search feed will
     be returned instead.
Returns
TypeDescription
\Zend_Gdata_Photos_PhotoFeed
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicgetTagEntry(mixed $location) : \Zend_Gdata_Photos_TagEntry

Retreive a single TagEntry object.

Parameters
NameTypeDescription
$locationmixed

The location for the feed, as a URL or Query.

Returns
TypeDescription
\Zend_Gdata_Photos_TagEntry
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicgetUserEntry(mixed $location) : \Zend_Gdata_Photos_UserEntry

Retreive a single UserEntry object.

Parameters
NameTypeDescription
$locationmixed

The location for the feed, as a URL or Query.

Returns
TypeDescription
\Zend_Gdata_Photos_UserEntry
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicgetUserFeed(string $userName = null, mixed $location = null) : \Zend_Gdata_Photos_UserFeed

Retrieve a UserFeed containing AlbumEntries, PhotoEntries and TagEntries associated with a given user.

Parameters
NameTypeDescription
$userNamestring

The userName of interest

$locationmixed

(optional) The location for the feed, as a URL

     or Query. If not provided, a default URL will be used instead.
Returns
TypeDescription
\Zend_Gdata_Photos_UserFeed
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicinsertAlbumEntry(\Zend_Gdata_Photos_AlbumEntry $album,  $uri = null) : \Zend_Gdata_Photos_AlbumEntry

Create a new album from a AlbumEntry.

Parameters
NameTypeDescription
$album\Zend_Gdata_Photos_AlbumEntry

The album entry to insert.

$uri
Returns
TypeDescription
\Zend_Gdata_Photos_AlbumEntryThe inserted album entry as returned by the server.
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicinsertCommentEntry(\Zend_Gdata_Photos_CommentEntry $comment,  $uri = null) : \Zend_Gdata_Photos_CommentEntry

Create a new comment from a CommentEntry.

Parameters
NameTypeDescription
$comment\Zend_Gdata_Photos_CommentEntry

The comment entry to insert.

$uri
Returns
TypeDescription
\Zend_Gdata_Photos_CommentEntryThe inserted comment entry as returned by the server.
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicinsertPhotoEntry(\Zend_Gdata_Photos_PhotoEntry $photo,  $uri = null) : \Zend_Gdata_Photos_PhotoEntry

Create a new photo from a PhotoEntry.

Parameters
NameTypeDescription
$photo\Zend_Gdata_Photos_PhotoEntry

The photo to insert.

$uri
Returns
TypeDescription
\Zend_Gdata_Photos_PhotoEntryThe inserted photo entry as returned by the server.
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
methodpublicinsertTagEntry(\Zend_Gdata_Photos_TagEntry $tag,  $uri = null) : \Zend_Gdata_Photos_TagEntry

Create a new tag from a TagEntry.

Parameters
NameTypeDescription
$tag\Zend_Gdata_Photos_TagEntry

The tag entry to insert.

$uri
Returns
TypeDescription
\Zend_Gdata_Photos_TagEntryThe inserted tag entry as returned by the server.
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
\Zend_Gdata_App_HttpException
Documentation was generated by phpDocumentor 2.2.0 .