Zend_Gdata_AppProvides Atom Publishing Protocol (APP) functionality. This class and all other components of Zend_Gdata_App are designed to work independently from other Zend_Gdata components in order to interact with generic APP services.
Located in /Gdata/App.php (line 52)
| Class | Description |
|---|---|
Zend_Gdata
|
Provides functionality to interact with Google data APIs Subclasses exist to implement service-specific features |
static Zend_Gdata_App_Feed
import
(string $uri, [Zend_Http_Client $client = null], [string $className = 'Zend_Gdata_App_Feed'])
static Zend_Gdata_Feed
importFile
(string $filename, [string $className = 'Zend_Gdata_App_Feed'], [string $useIncludePath = false])
static Zend_Gdata_App_Feed
importString
(string $string, [string $className = 'Zend_Gdata_App_Feed'])
Zend_Gdata_App
__construct
([Zend_Http_Client $client = null], [string $applicationId = 'MyCompany-MyApp-1.0'])
Zend_Gdata_App_Entry
insertEntry
(mixed $data, string $uri, [string $className = 'Zend_Gdata_App_Entry'])
Zend_Http_Response
performHttpRequest
(string $method, string $url, [array $headers = null], [string $body = null], [string $contentType = null], [int $remainingRedirects = null])
Zend_Http_Response
post
(mixed $data, [string $uri = null], [ $remainingRedirects = null], [string $contentType = null], [ $extraHeaders = null], array $headers, array $extraHaders)
array
prepareRequest
(string $method, [string $url = null], [array $headers = array()], [mixed $data = null], [string $contentTypeOverride = null])
Zend_Http_Response
put
(mixed $data, [string $uri = null], [ $remainingRedirects = null], [string $contentType = null], [ $extraHeaders = null], array $headers, array $extraHaders)
static boolean
$_gzipEnabled
= false (line 81)
Enable gzipped responses?
static boolean
$_httpMethodOverride
= false (line 74)
Override HTTP PUT and DELETE request methods?
static int
$_maxRedirects
= 5 (line 112)
Maximum number of redirects to follow during HTTP operations
static Zend_Http_Client
$_staticHttpClient
= null (line 67)
Client object used to communicate in static context
static boolean
$_verboseExceptionMessages
= true (line 89)
Use verbose exception messages. In the case of HTTP errors, use the body of the HTTP response in the exception message.
string
$_defaultPostUri
= null (line 96)
Default URI to which to POST.
Zend_Http_Client
$_httpClient
(line 60)
Client object used to communicate
array
$_registeredPackages
= array(Packages to search for classes when using magic __call method, in order.
static getGzipEnabled (line 285)
Get the HTTP override state
static getHttpMethodOverride (line 257)
Get the HTTP override state
static getMaxRedirects (line 332)
Get the maximum number of redirects to follow during HTTP operations
static getStaticHttpClient (line 219)
Gets the HTTP client object. If none is set, a new Zend_Http_Client will be used.
static getVerboseExceptionMessages (line 298)
Get whether to use verbose exception messages
In the case of HTTP errors, use the body of the HTTP response in the exception message.
static import (line 517)
Imports a feed located at $uri.
static importFile (line 587)
Imports a feed from a file located at $filename.
static importString (line 560)
Imports a feed represented by $string.
static setGzipEnabled (line 268)
Toggle requesting gzip encoded responses
static setHttpMethodOverride (line 247)
Toggle using POST instead of PUT and DELETE HTTP methods
Some feed implementations do not accept PUT and DELETE HTTP methods, or they can't be used because of proxies or other measures. This allows turning on using POST where PUT and DELETE would normally be used; in addition, an X-Method-Override header will be sent with a value of PUT or DELETE as appropriate.
static setMaxRedirects (line 322)
Set the maximum number of redirects to follow during HTTP operations
static setStaticHttpClient (line 208)
Set the static HTTP client instance
Sets the static HTTP client object to use for retrieving the feed.
static setVerboseExceptionMessages (line 311)
Set whether to use verbose exception messages
In the case of HTTP errors, use the body of the HTTP response in the exception message.
Constructor __construct (line 120)
Create Gdata object
delete (line 669)
DELETE entry with client object
enableRequestDebugLogging (line 797)
This method enables logging of requests by changing the Zend_Http_Client_Adapter used for performing the requests.
NOTE: This will not work if you have customized the adapter already to use a proxy server or other interface.
get (line 607)
GET a uri using client object
getEntry (line 157)
Retreive entry object
getFeed (line 145)
Retreive feed object
getHttpClient (line 167)
Get the Zend_Http_Client object used for communication
importUrl (line 539)
Imports the specified URL (non-statically).
insertEntry (line 688)
Inserts an entry to a given URI and returns the response as a fully formed Entry.
performHttpRequest (line 436)
Performs a HTTP request using the specified method
post (line 626)
POST data with client object
prepareRequest (line 360)
Provides pre-processing for HTTP requests to APP services.
put (line 650)
PUT data with client object
registerPackage (line 133)
Adds a Zend Framework package to the $_registeredPackages array.
This array is searched when using the magic __call method below to instantiante new objects.
retrieveAllEntriesForFeed (line 769)
Retrieve all entries for a feed, iterating through pages as necessary.
Be aware that calling this function on a large dataset will take a significant amount of time to complete. In some cases this may cause execution to timeout without proper precautions in place.
setHttpClient (line 179)
Set the Zend_Http_Client object used for communication
updateEntry (line 704)
Update an entry
__call (line 731)
Provides a magic factory method to instantiate new objects with
shorter syntax than would otherwise be required by the Zend Framework naming conventions. For instance, to construct a new Zend_Gdata_Calendar_Extension_Color, a developer simply needs to do $gCal->newColor(). For this magic constructor, packages are searched in the same order as which they appear in the $_registeredPackages array
Documentation generated on Mon, 15 Sep 2008 00:11:34 +0400 by phpDocumentor 1.4.2