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) : \WorksheetEntry
Gets 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') : void
Create 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) : void
Deletes an existing row .
Name | Type | Description |
---|---|---|
$entry | \ListEntry | The row to delete |
getCellEntry(string $location) : \CellEntry
Gets a cell entry.
Name | Type | Description |
---|---|---|
$location | string | A CellQuery or a URI specifying the entry location. |
Type | Description |
---|---|
\CellEntry |
getCellFeed(string $location) : \CellFeed
Gets a cell feed.
Name | Type | Description |
---|---|---|
$location | string | A CellQuery, WorksheetEntry or a URI specifying the feed location. |
Type | Description |
---|---|
\CellFeed |
getListEntry(string $location) : \ListEntry
Gets a list entry.
Name | Type | Description |
---|---|---|
$location | string | A ListQuery or a URI specifying the entry location. |
Type | Description |
---|---|
\ListEntry |
getListFeed(mixed $location) : \ListFeed
Gets 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) : 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 |
---|---|---|
$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) : \SpreadsheetEntry
Gets 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_SpreadsheetFeed
Gets 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) : array
Returns 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_SpreadsheetFeed
Alias 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_WorksheetFeed
Gets 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') : \ListEntry
Inserts 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') : \CellEntry
Updates 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) : void
Updates 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 |