Gdata/Spreadsheets.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
- Parent(s)
- \Zend_Gdata < \Zend_Gdata_App
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Link
- http://code.google.com/apis/gdata/spreadsheets.html
Constants
Properties

array $namespaces = array(array('gs', 'http://schemas.google.com/spreadsheets/2006', 1, 0), array('gsx', 'http://schemas.google.com/spreadsheets/2006/extended', 1, 0))array(array('gs', 'http://schemas.google.com/spreadsheets/2006', 1, 0), array('gsx', 'http://schemas.google.com/spreadsheets/2006/extended', 1, 0))Details- Type
- array
Methods

GetWorksheetEntry(string $location) : \WorksheetEntryGets a worksheet entry.
| Name | Type | Description |
|---|---|---|
| $location | string | A DocumentQuery or a URI specifying the entry location. |
| Type | Description |
|---|---|
| \WorksheetEntry |

__construct(\Zend_Http_Client $client = null, string $applicationId = 'MyCompany-MyApp-1.0') : voidCreate Gdata_Spreadsheets object
| Name | Type | Description |
|---|---|---|
| $client | \Zend_Http_Client | (optional) The HTTP client to use when |
| $applicationId | string | The identity of the app in the form of Company-AppName-Version |

deleteRow(\ListEntry $entry) : voidDeletes an existing row .
| Name | Type | Description |
|---|---|---|
| $entry | \ListEntry | The row to delete |

getCellEntry(string $location) : \CellEntryGets a cell entry.
| Name | Type | Description |
|---|---|---|
| $location | string | A CellQuery or a URI specifying the entry location. |
| Type | Description |
|---|---|
| \CellEntry |

getCellFeed(string $location) : \CellFeedGets a cell feed.
| Name | Type | Description |
|---|---|---|
| $location | string | A CellQuery, WorksheetEntry or a URI specifying the feed location. |
| Type | Description |
|---|---|
| \CellFeed |

getListEntry(string $location) : \ListEntryGets a list entry.
| Name | Type | Description |
|---|---|---|
| $location | string | A ListQuery or a URI specifying the entry location. |
| Type | Description |
|---|---|
| \ListEntry |

getListFeed(mixed $location) : \ListFeedGets a list feed.
| Name | Type | Description |
|---|---|---|
| $location | mixed | A ListQuery, WorksheetEntry or string URI specifying the feed location. |
| Type | Description |
|---|---|
| \ListFeed |

getSpreadsheetCellFeedContents(mixed $location, string $range = null, boolean $empty = false) : arrayReturns 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 |
|---|---|---|
| $location | mixed | A CellQuery, WorksheetEntry or a URL (w/o query string) specifying the feed location. |
| $range | string | The range of cells to retrieve |
| $empty | boolean | Whether to retrieve empty cells |
| Type | Description |
|---|---|
| array | An associative array of cells |

getSpreadsheetEntry(string $location) : \SpreadsheetEntryGets a spreadsheet entry.
| Name | Type | Description |
|---|---|---|
| $location | string | A DocumentQuery or a URI specifying the entry location. |
| Type | Description |
|---|---|
| \SpreadsheetEntry |

getSpreadsheetFeed(mixed $location = null) : \Zend_Gdata_Spreadsheets_SpreadsheetFeedGets a spreadsheet feed.
| Name | Type | Description |
|---|---|---|
| $location | mixed | A DocumentQuery or a string URI specifying the feed location. |
| Type | Description |
|---|---|
| \Zend_Gdata_Spreadsheets_SpreadsheetFeed |

getSpreadsheetListFeedContents(mixed $location) : arrayReturns the content of all rows as an associative array
| Name | Type | Description |
|---|---|---|
| $location | mixed | A ListQuery or string URI specifying the feed location. |
| Type | Description |
|---|---|
| array | An array of rows. Each element of the array is an associative array of data |

getSpreadsheets(mixed $location = null) : \Zend_Gdata_Spreadsheets_SpreadsheetFeedAlias for getSpreadsheetFeed
| Name | Type | Description |
|---|---|---|
| $location | mixed | A DocumentQuery or a string URI specifying the feed location. |
| Type | Description |
|---|---|
| \Zend_Gdata_Spreadsheets_SpreadsheetFeed |

getWorksheetFeed(mixed $location) : \Zend_Gdata_Spreadsheets_WorksheetFeedGets a worksheet feed.
| Name | Type | Description |
|---|---|---|
| $location | mixed | A DocumentQuery, SpreadsheetEntry, or a string URI |
| Type | Description |
|---|---|
| \Zend_Gdata_Spreadsheets_WorksheetFeed | The feed of worksheets |

insertRow(array $rowData, string $key, string $wkshtId = 'default') : \ListEntryInserts a new row with provided data.
| Name | Type | Description |
|---|---|---|
| $rowData | array | An array of column header to row data |
| $key | string | The key of the spreadsheet to modify |
| $wkshtId | string | (optional) The worksheet to modify |
| Type | Description |
|---|---|
| \ListEntry | The inserted row |

updateCell(int $row, int $col, int $inputValue, string $key, string $wkshtId = 'default') : \CellEntryUpdates an existing cell.
| Name | Type | Description |
|---|---|---|
| $row | int | The row containing the cell to update |
| $col | int | The column containing the cell to update |
| $inputValue | int | The new value for the cell |
| $key | string | The key for the spreadsheet to be updated |
| $wkshtId | string | (optional) The worksheet to be updated |
| Type | Description |
|---|---|
| \CellEntry | The updated cell entry. |

updateRow(\ListEntry $entry, array $newRowData) : voidUpdates an existing row with provided data.
| Name | Type | Description |
|---|---|---|
| $entry | \ListEntry | The row entry to update |
| $newRowData | array | An array of column header to row data |