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.
Service class for interacting with the Google Base data API
GBASE_ITEM_FEED_URI
= 'https://www.google.com/base/feeds/items'
Path to the customer items feeds on the Google Base server.
GBASE_SNIPPET_FEED_URI
= 'https://www.google.com/base/feeds/snippets'
Path to the snippets feeds on the Google Base server.

string
$_defaultPostUri= 'self::GBASE_ITEM_FEED_URI'
The default URI for POST methods
self::GBASE_ITEM_FEED_URI
Details
__construct(
\Zend_Http_Client $client
=
null, string $applicationId
=
'MyCompany-MyApp-1.0'
)
:
void
Create Zend_Gdata_Gbase object
Name | Type | Description |
---|---|---|
$client | \Zend_Http_Client | (optional) The HTTP client to use when when communicating with the Google Apps servers. |
$applicationId | string | The identity of the app in the form of Company-AppName-Version |

deleteGbaseItem(
\Zend_Gdata_Gbase_ItemEntry $entry, boolean $dryRun
=
false
)
:
\Zend_Gdata_Gbase_ItemFeed
Delete an entry
Name | Type | Description |
---|---|---|
$entry | \Zend_Gdata_Gbase_ItemEntry | The Base entry to remove |
$dryRun | boolean | Flag for the 'dry-run' parameter |
Type | Description |
---|---|
\Zend_Gdata_Gbase_ItemFeed |

getGbaseItemEntry(
mixed $location
=
null
)
:
\Zend_Gdata_Gbase_ItemEntry
Retreive entry object
Name | Type | Description |
---|---|---|
$location | mixed | The location for the feed, as a URL or Query |
Type | Description |
---|---|
\Zend_Gdata_Gbase_ItemEntry |

getGbaseItemFeed(
mixed $location
=
null
)
:
\Zend_Gdata_Gbase_ItemFeed
Retreive feed object
Name | Type | Description |
---|---|---|
$location | mixed | The location for the feed, as a URL or Query |
Type | Description |
---|---|
\Zend_Gdata_Gbase_ItemFeed |

getGbaseSnippetFeed(
mixed $location
=
null
)
:
\Zend_Gdata_Gbase_SnippetFeed
Retrieve feed object
Name | Type | Description |
---|---|---|
$location | mixed | The location for the feed, as a URL or Query |
Type | Description |
---|---|
\Zend_Gdata_Gbase_SnippetFeed |

insertGbaseItem(
\Zend_Gdata_Gbase_ItemEntry $entry, boolean $dryRun
=
false
)
:
\Zend_Gdata_Gbase_ItemFeed
Insert an entry
Name | Type | Description |
---|---|---|
$entry | \Zend_Gdata_Gbase_ItemEntry | The Base entry to upload |
$dryRun | boolean | Flag for the 'dry-run' parameter |
Type | Description |
---|---|
\Zend_Gdata_Gbase_ItemFeed |

updateGbaseItem(
\Zend_Gdata_Gbase_ItemEntry $entry, boolean $dryRun
=
false
)
:
\Zend_Gdata_Gbase_ItemEntry
Update an entry
Name | Type | Description |
---|---|---|
$entry | \Zend_Gdata_Gbase_ItemEntry | The Base entry to be updated |
$dryRun | boolean | Flag for the 'dry-run' parameter |
Type | Description |
---|---|
\Zend_Gdata_Gbase_ItemEntry |