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.
Gdata Spreadsheets

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 when communicating with the Google servers. |
| $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'.
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
| 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. |