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.
Concrete class for working with Item entries.

addGbaseAttribute(
string $name, $text, string $type
=
null
)
:
\Zend_Gdata_Gbase_ItemEntry
Adds a custom attribute to the entry in the following format: <g:[$name] type='[$type]'>[$value]</g:[$name]>
Name | Type | Description |
---|---|---|
$name | string | The name of the attribute |
$text | ||
$type | string | (optional) The type of the attribute. e.g.: 'text', 'number', 'floatUnit' |
Type | Description |
---|---|
\Zend_Gdata_Gbase_ItemEntry | Provides a fluent interface |

delete(
$dryRun
=
false
)
:
void
Deletes this entry to the server using the referenced Zend_Http_Client to do a HTTP DELETE to the edit link stored in this entry's link collection.

removeGbaseAttribute(
\Zend_Gdata_Gbase_Extension_BaseAttribute $baseAttribute
)
:
\Zend_Gdata_Gbase_ItemEntry
Removes a Base attribute from the current list of Base attributes
Name | Type | Description |
---|---|---|
$baseAttribute | \Zend_Gdata_Gbase_Extension_BaseAttribute | The attribute to be removed |
Type | Description |
---|---|
\Zend_Gdata_Gbase_ItemEntry | Provides a fluent interface |

save(
boolean $dryRun
=
false, string|null $uri
=
null, string|null $className
=
null, array $extraHeaders
=
array()
)
:
\Zend_Gdata_App_Entry
Uploads changes in this entry to the server using Zend_Gdata_App
Name | Type | Description |
---|---|---|
$dryRun | boolean | Whether the transaction is dry run or not. |
$uri | string|null | The URI to send requests to, or null if $data contains the URI. |
$className | string|null | The name of the class that should we deserializing the server response. If null, then 'Zend_Gdata_App_Entry' will be used. |
$extraHeaders | array | Extra headers to add to the request, as an array of string-based key/value pairs. |
Type | Description |
---|---|
\Zend_Gdata_App_Entry | The updated entry |
Exception | Description |
---|---|
\Zend_Gdata_App_Exception |

setItemType(
\Zend_Gdata_Gbase_Extension_ItemType $value
)
:
\Zend_Gdata_Gbase_ItemEntry
Set the value of the itme_type
Name | Type | Description |
---|---|---|
$value | \Zend_Gdata_Gbase_Extension_ItemType | The desired value for the item_type |
Type | Description |
---|---|
\Zend_Gdata_Gbase_ItemEntry | Provides a fluent interface |