API Documentation

Gdata/Spreadsheets/WorksheetEntry.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
Spreadsheets
version
$Id: WorksheetEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Gdata_Spreadsheets_WorksheetEntry

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_Spreadsheets_WorksheetEntry

Extends from
Zend_Gdata_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
package
Zend_Gdata
subpackage
Spreadsheets
Properties
$_entryClassName
$_rowCount
$_colCount
Methods
__construct
getDOM
takeChildFromDOM
getRowCount
getColumnCount
setRowCount
setColumnCount
getContentsAsRows
getContentsAsCells

Description

Concrete class for working with Worksheet entries.

Properties

$_colCount

 $_colCount = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_entryClassName

 $_entryClassName = 'Zend_Gdata_Spreadsheets_WorksheetEntry'

Details

visibility
protected
default
Zend_Gdata_Spreadsheets_WorksheetEntry
final
false
static
false

$_rowCount

 $_rowCount = 'null'

Details

visibility
protected
default
null
final
false
static
false

Methods

__construct

__construct( DOMElement $element = null ) :

Constructs a new Zend_Gdata_Spreadsheets_WorksheetEntry object.

Arguments
$element
DOMElement
(optional) The DOMElement on which to base this object.
Details
visibility
public
final
false
static
false

getColumnCount

getColumnCount( ) : string

Gets the column count for this entry.

Output
string
The column count for the entry.
Details
visibility
public
final
false
static
false

getContentsAsCells

getContentsAsCells( string $range = null, boolean $empty = false ) : array

Returns the content of all cells as an associative array, indexed off the cell location (ie 'A1', 'D4', etc). Each element of the array is an associative array with a 'value' and a 'function'.

Only non-empty cells are returned by default. 'range' is the value of the 'range' query parameter specified at: http://code.google.com/apis/spreadsheets/reference.html#cells_Parameters

Arguments
$range
string
The range of cells to retrieve
$empty
boolean
Whether to retrieve empty cells
Output
array
An associative array of cells
Details
visibility
public
final
false
static
false

getContentsAsRows

getContentsAsRows( ) : array

Returns the content of all rows as an associative array

Output
array
An array of rows. Each element of the array is an associative array of data
Details
visibility
public
final
false
static
false

getDOM

getDOM( DOMDocument $doc = null,  $majorVersion = 1,  $minorVersion = null ) : DOMElement

Retrieves a DOMElement which corresponds to this element and all child properties. This is used to build an entry back into a DOM and eventually XML text for sending to the server upon updates, or for application storage/persistence.

Arguments
$doc
DOMDocument
The DOMDocument used to construct DOMElements
$majorVersion
$minorVersion
Output
DOMElement
The DOMElement representing this element and all child properties.
Details
visibility
public
final
false
static
false

getRowCount

getRowCount( ) : string

Gets the row count for this entry.

Output
string
The row count for the entry.
Details
visibility
public
final
false
static
false

setColumnCount

setColumnCount( string $colCount ) :

Sets the column count for this entry.

Arguments
$colCount
string
The new column count for the entry.
Details
visibility
public
final
false
static
false

setRowCount

setRowCount( string $rowCount ) :

Sets the row count for this entry.

Arguments
$rowCount
string
The new row count for the entry.
Details
visibility
public
final
false
static
false

takeChildFromDOM

takeChildFromDOM( DOMNode $child ) :

Creates individual Entry objects of the appropriate type and stores them in the $_entry array based upon DOM data.

Arguments
$child
DOMNode
The DOMNode to process
Details
visibility
protected
final
false
static
false
Documentation was generated by DocBlox.