API Documentation

Gdata.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Gdata
subpackage
Gdata
version
$Id: Gdata.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Gdata

Description

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.

Zend_Gdata

Extends from
Zend_Gdata_App
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
link
http://code.google.com/apis/gdata/overview.html
package
Zend_Gdata
subpackage
Gdata
Constants
AUTH_SERVICE_NAME
Properties
$_defaultPostUri
$_registeredPackages
$namespaces
$_httpClient
$_staticHttpClient
Methods
__construct
import
getFeed
getEntry
performHttpRequest
isAuthenticated

Description

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

Constants

AUTH_SERVICE_NAME

string AUTH_SERVICE_NAME = 'xapi'

Service name for use with Google's authentication mechanisms

Details

value
xapi
AUTH_SERVICE_NAME
string

Properties

$_defaultPostUri

string $_defaultPostUri = 'null'

Default URI to which to POST.

Details

$_defaultPostUri
string
visibility
protected
default
null
final
false
static
false

$_httpClient

Zend_Gdata_HttpClient $_httpClient = ''

Client object used to communicate

Details

$_httpClient
Zend_Gdata_HttpClient
visibility
protected
default
final
false
static
false

$_registeredPackages

array $_registeredPackages = 'array'

Packages to search for classes when using magic __call method, in order.

Details

$_registeredPackages
array
visibility
protected
default
array
final
false
static
false

$_staticHttpClient

Zend_Gdata_HttpClient $_staticHttpClient = 'null'

Client object used to communicate in static context

Details

$_staticHttpClient
Zend_Gdata_HttpClient
visibility
protected
default
null
final
false
static
true

$namespaces

array $namespaces = 'array'

Namespaces used for Gdata data

Details

$namespaces
array
visibility
public
default
array
final
false
static
true

Methods

__construct

__construct( Zend_Http_Client $client = null, string $applicationId = MyCompany-MyApp-1.0 ) :

Create Gdata object

Arguments
$client
Zend_Http_Client
$applicationId
string
The identity of the app in the form of Company-AppName-Version
Details
visibility
public
final
false
static
false

getEntry

getEntry( mixed $location,  $className = Zend_Gdata_Entry ) : string|Zend_Gdata_App_Entry

Retrieve entry as string or object

Arguments
$location
mixed
The location as string or Zend_Gdata_Query
$className
Output
string|Zend_Gdata_App_Entry
Returns string only if the object mapping has been disabled explicitly by passing false to the useObjectMapping() function.
Details
visibility
public
final
false
static
false
throws

getFeed

getFeed( mixed $location, string $className = Zend_Gdata_Feed ) : string|Zend_Gdata_App_Feed

Retrieve feed as string or object

Arguments
$location
mixed
The location as string or Zend_Gdata_Query
$className
string
The class type to use for returning the feed
Output
string|Zend_Gdata_App_Feed
Returns string only if the object mapping has been disabled explicitly by passing false to the useObjectMapping() function.
Details
visibility
public
final
false
static
false
throws

import

import( string $uri, Zend_Http_Client $client = null, string $className = Zend_Gdata_Feed ) : string|Zend_Gdata_App_Feed

Imports a feed located at $uri.

Arguments
$uri
string
$client
Zend_Http_Client
The client used for communication
$className
string
The class which is used as the return type
Output
string|Zend_Gdata_App_Feed
Returns string only if the object mapping has been disabled explicitly by passing false to the useObjectMapping() function.
Details
visibility
public
final
false
static
true
throws

isAuthenticated

isAuthenticated( ) : boolean

Determines whether service object is authenticated.

Output
boolean
True if service object is authenticated, false otherwise.
Details
visibility
public
final
false
static
false

performHttpRequest

performHttpRequest( 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.

Arguments
$method
string
The HTTP method for the request - 'GET', 'POST', 'PUT', 'DELETE'
$url
string
The URL to which this request is being performed, or null if found in $data
$headers
array
An associative array of HTTP headers for this request
$body
string
The body of the HTTP request
$contentType
string
The value for the content type of the request body
$remainingRedirects
int
Number of redirects to follow if requests results in one
Output
Zend_Http_Response
The response object
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.