Gdata.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
Gdata  
Version
$Id$  

\Zend_Gdata

Package: Zend_Gdata\Gdata
Provides functionality to interact with Google data APIs Subclasses exist to implement service-specific features
As the Google data API protocol is based upon the Atom Publishing Protocol (APP), Gdata functionality extends the appropriate Zend_Gdata_App classes
Parent(s)
\Zend_Gdata_App
Children
\Zend_Gdata_Calendar
\Zend_Gdata_Photos
\Zend_Gdata_Health
\Zend_Gdata_Analytics
\Zend_Gdata_DublinCore
\Zend_Gdata_Exif
\Zend_Gdata_Geo
\Zend_Gdata_Docs
\Zend_Gdata_Books
\Zend_Gdata_Gapps
\Zend_Gdata_Media
\Zend_Gdata_Spreadsheets
\Zend_Gdata_Gbase
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/gdata/overview.html  

Constants

>VConstantstring  AUTH_SERVICE_NAME = 'xapi'
Service name for use with Google's authentication mechanisms
AUTH_SERVICE_NAME
string

Properties

>VPropertyprotectedstring $_defaultPostUri = null
Default URI to which to POST.
Default valuenullDetails
Type
string
>VPropertyprotected\Zend_Gdata_HttpClient $_httpClient
Client object used to communicate
>VPropertyprotectedarray $_registeredPackages = array('Zend_Gdata_Kind', 'Zend_Gdata_Extension', 'Zend_Gdata', 'Zend_Gdata_App_Extension', 'Zend_Gdata_App')
Packages to search for classes when using magic __call method, in order.
Default valuearray('Zend_Gdata_Kind', 'Zend_Gdata_Extension', 'Zend_Gdata', 'Zend_Gdata_App_Extension', 'Zend_Gdata_App')Details
Type
array
>VPropertyprotected\Zend_Gdata_HttpClient $_staticHttpClient = null
static
Client object used to communicate in static context
Default valuenullDetails
Type
\Zend_Gdata_HttpClient
>VPropertypublicarray $namespaces = array(array('gd', 'http://schemas.google.com/g/2005', 1, 0), array('openSearch', 'http://a9.com/-/spec/opensearchrss/1.0/', 1, 0), array('openSearch', 'http://a9.com/-/spec/opensearch/1.1/', 2, 0), array('rss', 'http://blogs.law.harvard.edu/tech/rss', 1, 0))
static
Namespaces used for Gdata data
Default valuearray(array('gd', 'http://schemas.google.com/g/2005', 1, 0), array('openSearch', 'http://a9.com/-/spec/opensearchrss/1.0/', 1, 0), array('openSearch', 'http://a9.com/-/spec/opensearch/1.1/', 2, 0), array('rss', 'http://blogs.law.harvard.edu/tech/rss', 1, 0))Details
Type
array

Methods

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

Create Gdata object

Parameters
NameTypeDescription
$client\Zend_Http_Client
$applicationIdstring

The identity of the app in the form of

     Company-AppName-Version
methodpublicgetEntry(mixed $location,  $className = 'Zend_Gdata_Entry') : string | \Zend_Gdata_App_Entry

Retrieve entry as string or object

Parameters
NameTypeDescription
$locationmixed

The location as string or Zend_Gdata_Query

$className
Returns
TypeDescription
string | \Zend_Gdata_App_EntryReturns string only if the object mapping has been disabled explicitly by passing false to the useObjectMapping() function.
Throws
ExceptionDescription
\Zend_Gdata_App_InvalidArgumentException
methodpublicgetFeed(mixed $location, string $className = 'Zend_Gdata_Feed') : string | \Zend_Gdata_App_Feed

Retrieve feed as string or object

Parameters
NameTypeDescription
$locationmixed

The location as string or Zend_Gdata_Query

$classNamestring

The class type to use for returning the feed

Returns
TypeDescription
string | \Zend_Gdata_App_FeedReturns string only if the object mapping has been disabled explicitly by passing false to the useObjectMapping() function.
Throws
ExceptionDescription
\Zend_Gdata_App_InvalidArgumentException
methodpublicimport(string $uri, \Zend_Http_Client $client = null, string $className = 'Zend_Gdata_Feed',  $useObjectMapping = true) : string | \Zend_Gdata_App_Feed
static

Imports a feed located at $uri.

Parameters
NameTypeDescription
$uristring
$client\Zend_Http_Client

The client used for communication

$classNamestring

The class which is used as the return type

$useObjectMapping
Returns
TypeDescription
string | \Zend_Gdata_App_FeedReturns string only if the object mapping has been disabled explicitly by passing false to the useObjectMapping() function.
Throws
ExceptionDescription
\Zend_Gdata_App_Exception
methodpublicisAuthenticated() : boolean

Determines whether service object is authenticated.

Returns
TypeDescription
booleanTrue if service object is authenticated, false otherwise.
methodpublicperformHttpRequest(string $method, string $url, array $headers = array(), string $body = null, string $contentType = null, int $remainingRedirects = null) : \Zend_Http_Response

Performs a HTTP request using the specified method.

Overrides the definition in the parent (Zend_Gdata_App) and uses the Zend_Gdata_HttpClient functionality to filter the HTTP requests and responses.
Parameters
NameTypeDescription
$methodstring

The HTTP method for the request -

                  'GET', 'POST', 'PUT', 'DELETE'
$urlstring

The URL to which this request is being performed,

               or null if found in $data
$headersarray

An associative array of HTTP headers for this request

$bodystring

The body of the HTTP request

$contentTypestring

The value for the content type of the request body

$remainingRedirectsint

Number of redirects to follow if requests results in one

Returns
TypeDescription
\Zend_Http_ResponseThe response object
Documentation was generated by phpDocumentor 2.2.0 .