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 55)
| Class | Description |
|---|---|
Zend_Gdata
|
Provides functionality to interact with Google data APIs Subclasses exist to implement service-specific features |
static string|Zend_Gdata_App_Feed
import
(string $uri, [Zend_Http_Client $client = null], [string $className = 'Zend_Gdata_App_Feed'])
static Zend_Gdata_App_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'], [ $majorProtocolVersion = null], [ $minorProtocolVersion = null], integer $majorProcolVersion, integer $minorProcolVersion)
Zend_Gdata_App
__construct
([Zend_Http_Client $client = null], [string $applicationId = 'MyCompany-MyApp-1.0'])
string|Zend_Gdata_App_Feed
importUrl
(string $url, [string $className = 'Zend_Gdata_App_Feed'], [array $extraHeaders = array()])
Zend_Gdata_App_Entry
insertEntry
(mixed $data, string $uri, [string $className = 'Zend_Gdata_App_Entry'], [array $extraHeaders = array()])
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], [array $extraHeaders = null], array $headers)
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], [array $extraHeaders = null], array $headers)
Zend_Gdata_App_Entry
updateEntry
(mixed $data, [string|null $uri = null], [string|null $className = null], [array $extraHeaders = array()])
static boolean
$_gzipEnabled
= false (line 96)
Enable gzipped responses?
static boolean
$_httpMethodOverride
= false (line 89)
Override HTTP PUT and DELETE request methods?
static int
$_maxRedirects
= 5 (line 127)
Maximum number of redirects to follow during HTTP operations
static Zend_Http_Client
$_staticHttpClient
= null (line 82)
Client object used to communicate in static context
static boolean
$_verboseExceptionMessages
= true (line 104)
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 111)
Default URI to which to POST.
Zend_Http_Client
$_httpClient
(line 75)
Client object used to communicate
mixed
$_majorProtocolVersion
(line 140)
Indicates the major protocol version that should be used.
At present, recognized values are either 1 or 2. However, any integer value >= 1 is considered valid.
Under most circumtances, this will be automatically set by Zend_Gdata_App subclasses.
mixed
$_minorProtocolVersion
(line 156)
Indicates the minor protocol version that should be used. Can be set to either an integer >= 0, or NULL if no minor version should be sent to the server.
At present, this field is not used by any Google services, but may be used in the future.
Under most circumtances, this will be automatically set by Zend_Gdata_App subclasses.
array
$_registeredPackages
= array(Packages to search for classes when using magic __call method, in order.
boolean
$_useObjectMapping
= true (line 163)
Whether we want to use XML to object mapping when fetching data.
static getGzipEnabled (line 348)
Get the HTTP override state
static getHttpMethodOverride (line 320)
Get the HTTP override state
static getMaxRedirects (line 395)
Get the maximum number of redirects to follow during HTTP operations
static getStaticHttpClient (line 282)
Gets the HTTP client object. If none is set, a new Zend_Http_Client will be used.
static getVerboseExceptionMessages (line 361)
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 719)
Imports a feed located at $uri.
static importFile (line 833)
Imports a feed from a file located at $filename.
static importString (line 799)
Imports a feed represented by $string.
static setGzipEnabled (line 331)
Toggle requesting gzip encoded responses
static setHttpMethodOverride (line 310)
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 385)
Set the maximum number of redirects to follow during HTTP operations
static setStaticHttpClient (line 271)
Set the static HTTP client instance
Sets the static HTTP client object to use for retrieving the feed.
static setVerboseExceptionMessages (line 374)
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 171)
Create Gdata object
delete (line 923)
DELETE entry with client object
enableRequestDebugLogging (line 1098)
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.
generateIfMatchHeaderData (line 1169)
Returns the data for an If-Match header based on the current Etag property. If Etags are not supported by the server or cannot be extracted from the data, then null will be returned.
get (line 856)
GET a URI using client object.
getEntry (line 218)
Retrieve entry as string or object
getFeed (line 203)
Retrieve feed as string or object
getHttpClient (line 228)
Get the Zend_Http_Client object used for communication
getMajorProtocolVersion (line 424)
Get the major protocol version that is in use.
getMinorProtocolVersion (line 455)
Get the minor protocol version that is in use.
getNextFeed (line 1118)
Retrieve next set of results based on a given feed.
getPreviousFeed (line 1145)
Retrieve previous set of results based on a given feed.
importUrl (line 751)
Imports the specified URL (non-statically).
insertEntry (line 953)
Inserts an entry to a given URI and returns the response as a fully formed Entry.
performHttpRequest (line 589)
Performs a HTTP request using the specified method
post (line 878)
POST data with client object
prepareRequest (line 483)
Provides pre-processing for HTTP requests to APP services.
put (line 903)
PUT data with client object
registerPackage (line 188)
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 1070)
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 240)
Set the Zend_Http_Client object used for communication
setMajorProtocolVersion (line 408)
Set the major protocol version that should be used. Values < 1 will cause a Zend_Gdata_App_InvalidArgumentException to be thrown.
setMinorProtocolVersion (line 438)
Set the minor protocol version that should be used. If set to NULL, no minor protocol version will be sent to the server. Values < 0 will cause a Zend_Gdata_App_InvalidArgumentException to be thrown.
updateEntry (line 983)
Update an entry
useObjectMapping (line 1202)
Enable/disable the use of XML to object mapping.
usingObjectMapping (line 1190)
Determine whether service object is using XML to object mapping.
__call (line 1017)
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, 21 Jun 2010 15:07:33 -0400 by phpDocumentor 1.4.3