API Documentation

Gdata/Gbase/ItemEntry.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Gdata
subpackage
Gbase
version
$Id: ItemEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Gdata_Gbase_ItemEntry

Description

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.

Zend_Gdata_Gbase_ItemEntry

Extends from
Zend_Gdata_Gbase_Entry
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
link
http://code.google.com/apis/base/
package
Zend_Gdata
subpackage
Gbase
Properties
$_entryClassName
Methods
setItemType
addGbaseAttribute
removeGbaseAttribute
save
delete

Description

Concrete class for working with Item entries.

Properties

$_entryClassName

string $_entryClassName = 'Zend_Gdata_Gbase_ItemEntry'

The classname for individual item entry elements.

Details

$_entryClassName
string
visibility
protected
default
Zend_Gdata_Gbase_ItemEntry
final
false
static
false

Methods

addGbaseAttribute

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]>

Arguments
$name
string
The name of the attribute
$text
$type
string
(optional) The type of the attribute. e.g.: 'text', 'number', 'floatUnit'
Output
Zend_Gdata_Gbase_ItemEntry
Provides a fluent interface
Details
visibility
public
final
false
static
false

delete

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.

Arguments
$dryRun
Details
visibility
public
final
false
static
false
throws

removeGbaseAttribute

removeGbaseAttribute( Zend_Gdata_Gbase_Extension_BaseAttribute $baseAttribute ) : Zend_Gdata_Gbase_ItemEntry

Removes a Base attribute from the current list of Base attributes

Arguments
$baseAttribute
Zend_Gdata_Gbase_Extension_BaseAttribute
The attribute to be removed
Output
Zend_Gdata_Gbase_ItemEntry
Provides a fluent interface
Details
visibility
public
final
false
static
false

save

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

Arguments
$dryRun
boolean
Whether the transaction is dry run or not.
$uri
stringnull
The URI to send requests to, or null if $data contains the URI.
$className
stringnull
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.
Output
Zend_Gdata_App_Entry
The updated entry
Details
visibility
public
final
false
static
false
throws

setItemType

setItemType( Zend_Gdata_Gbase_Extension_ItemType $value ) : Zend_Gdata_Gbase_ItemEntry

Set the value of the itme_type

Arguments
$value
Zend_Gdata_Gbase_Extension_ItemType
The desired value for the item_type
Output
Zend_Gdata_Gbase_ItemEntry
Provides a fluent interface
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.