Gdata.php
- 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
- 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
Properties
array $_registeredPackages = array('Zend_Gdata_Kind', 'Zend_Gdata_Extension', 'Zend_Gdata', 'Zend_Gdata_App_Extension', 'Zend_Gdata_App')
array('Zend_Gdata_Kind', 'Zend_Gdata_Extension', 'Zend_Gdata', 'Zend_Gdata_App_Extension', 'Zend_Gdata_App')
Details- Type
- array
\Zend_Gdata_HttpClient $_staticHttpClient = null
null
Detailsarray $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))
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))
Details- Type
- array
Methods
__construct(\Zend_Http_Client $client = null, string $applicationId = 'MyCompany-MyApp-1.0') : void
Create Gdata object
Name | Type | Description |
---|---|---|
$client | \Zend_Http_Client | |
$applicationId | string | The identity of the app in the form of
|
getEntry(mixed $location, $className = 'Zend_Gdata_Entry') : string | \Zend_Gdata_App_Entry
Retrieve entry as string or object
Name | Type | Description |
---|---|---|
$location | mixed | The location as string or Zend_Gdata_Query |
$className |
Type | Description |
---|---|
string | \Zend_Gdata_App_Entry | Returns string only if the object mapping has been disabled explicitly by passing false to the useObjectMapping() function. |
Exception | Description |
---|---|
\Zend_Gdata_App_InvalidArgumentException |
getFeed(mixed $location, string $className = 'Zend_Gdata_Feed') : string | \Zend_Gdata_App_Feed
Retrieve feed as string or object
Name | Type | Description |
---|---|---|
$location | mixed | The location as string or Zend_Gdata_Query |
$className | string | The class type to use for returning the feed |
Type | Description |
---|---|
string | \Zend_Gdata_App_Feed | Returns string only if the object mapping has been disabled explicitly by passing false to the useObjectMapping() function. |
Exception | Description |
---|---|
\Zend_Gdata_App_InvalidArgumentException |
import(string $uri, \Zend_Http_Client $client = null, string $className = 'Zend_Gdata_Feed', $useObjectMapping = true) : string | \Zend_Gdata_App_Feed
Imports a feed located at $uri.
Name | Type | Description |
---|---|---|
$uri | string | |
$client | \Zend_Http_Client | The client used for communication |
$className | string | The class which is used as the return type |
$useObjectMapping |
Type | Description |
---|---|
string | \Zend_Gdata_App_Feed | Returns string only if the object mapping has been disabled explicitly by passing false to the useObjectMapping() function. |
Exception | Description |
---|---|
\Zend_Gdata_App_Exception |
isAuthenticated() : boolean
Determines whether service object is authenticated.
Type | Description |
---|---|
boolean | True if service object is authenticated, false otherwise. |
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.
Name | Type | Description |
---|---|---|
$method | string | The HTTP method for the request -
|
$url | string | The URL to which this request is being performed,
|
$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 |
Type | Description |
---|---|
\Zend_Http_Response | The response object |