Gdata/Spreadsheets/WorksheetEntry.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Gdata
- Subpackage
- Spreadsheets
- Version
- $Id$
\Zend_Gdata_Spreadsheets_WorksheetEntry
- Parent(s)
- \Zend_Gdata_Entry < \Zend_Gdata_App_MediaEntry < \Zend_Gdata_App_Entry < \Zend_Gdata_App_FeedEntryParent < \Zend_Gdata_App_Base
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
$_entryClassName = 'Zend_Gdata_Spreadsheets_WorksheetEntry'
'Zend_Gdata_Spreadsheets_WorksheetEntry'
Details- Type
- n/a
Methods
__construct(\DOMElement $element = null) : void
Constructs a new Zend_Gdata_Spreadsheets_WorksheetEntry object.
Name | Type | Description |
---|---|---|
$element | \DOMElement | (optional) The DOMElement on which to base this object. |
getColumnCount() : string
Gets the column count for this entry.
Type | Description |
---|---|
string | The column count for the entry. |
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'.
Name | Type | Description |
---|---|---|
$range | string | The range of cells to retrieve |
$empty | boolean | Whether to retrieve empty cells |
Type | Description |
---|---|
array | An associative array of cells |
getContentsAsRows() : array
Returns the content of all rows as an associative array
Type | Description |
---|---|
array | An array of rows. Each element of the array is an associative array of data |
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.
Name | Type | Description |
---|---|---|
$doc | \DOMDocument | The DOMDocument used to construct DOMElements |
$majorVersion | ||
$minorVersion |
Type | Description |
---|---|
\DOMElement | The DOMElement representing this element and all child properties. |
getRowCount() : string
Gets the row count for this entry.
Type | Description |
---|---|
string | The row count for the entry. |
setColumnCount(string $colCount) : void
Sets the column count for this entry.
Name | Type | Description |
---|---|---|
$colCount | string | The new column count for the entry. |
setRowCount(string $rowCount) : void
Sets the row count for this entry.
Name | Type | Description |
---|---|---|
$rowCount | string | The new row count for the entry. |