Gdata/Spreadsheets.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.
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

Package: Zend_Gdata\Spreadsheets
Gdata Spreadsheets
As the Google data API protocol is based upon the Atom Publishing Protocol (APP), Gdata functionality extends the appropriate Zend_Gdata_App classes
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

>VConstant  SPREADSHEETS_FEED_URI = 'https://spreadsheets.google.com/feeds/spreadsheets'
>VConstant  SPREADSHEETS_POST_URI = 'https://spreadsheets.google.com/feeds/spreadsheets/private/full'
>VConstant  WORKSHEETS_FEED_LINK_URI = 'http://schemas.google.com/spreadsheets/2006#worksheetsfeed'
>VConstant  LIST_FEED_LINK_URI = 'http://schemas.google.com/spreadsheets/2006#listfeed'
>VConstant  CELL_FEED_LINK_URI = 'http://schemas.google.com/spreadsheets/2006#cellsfeed'
>VConstant  AUTH_SERVICE_NAME = 'wise'

Properties

>VPropertypublicarray $namespaces = array(array('gs', 'http://schemas.google.com/spreadsheets/2006', 1, 0), array('gsx', 'http://schemas.google.com/spreadsheets/2006/extended', 1, 0))
static
Namespaces used for Zend_Gdata_Photos
Default valuearray(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

methodpublicGetWorksheetEntry(string $location) : \WorksheetEntry

Gets a worksheet entry.

Parameters
NameTypeDescription
$locationstring

A DocumentQuery or a URI specifying the entry location.

Returns
TypeDescription
\WorksheetEntry
methodpublic__construct(\Zend_Http_Client $client = null, string $applicationId = 'MyCompany-MyApp-1.0') : void

Create Gdata_Spreadsheets object

Parameters
NameTypeDescription
$client\Zend_Http_Client

(optional) The HTTP client to use when

     when communicating with the Google servers.
$applicationIdstring

The identity of the app in the form of Company-AppName-Version

methodpublicdeleteRow(\ListEntry $entry) : void

Deletes an existing row .

Parameters
NameTypeDescription
$entry\ListEntry

The row to delete

methodpublicgetCellEntry(string $location) : \CellEntry

Gets a cell entry.

Parameters
NameTypeDescription
$locationstring

A CellQuery or a URI specifying the entry location.

Returns
TypeDescription
\CellEntry
methodpublicgetCellFeed(string $location) : \CellFeed

Gets a cell feed.

Parameters
NameTypeDescription
$locationstring

A CellQuery, WorksheetEntry or a URI specifying the feed location.

Returns
TypeDescription
\CellFeed
methodpublicgetListEntry(string $location) : \ListEntry

Gets a list entry.

Parameters
NameTypeDescription
$locationstring

A ListQuery or a URI specifying the entry location.

Returns
TypeDescription
\ListEntry
methodpublicgetListFeed(mixed $location) : \ListFeed

Gets a list feed.

Parameters
NameTypeDescription
$locationmixed

A ListQuery, WorksheetEntry or string URI specifying the feed location.

Returns
TypeDescription
\ListFeed
methodpublicgetSpreadsheetCellFeedContents(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'.

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
Parameters
NameTypeDescription
$locationmixed

A CellQuery, WorksheetEntry or a URL (w/o query string) specifying the feed location.

$rangestring

The range of cells to retrieve

$emptyboolean

Whether to retrieve empty cells

Returns
TypeDescription
arrayAn associative array of cells
methodpublicgetSpreadsheetEntry(string $location) : \SpreadsheetEntry

Gets a spreadsheet entry.

Parameters
NameTypeDescription
$locationstring

A DocumentQuery or a URI specifying the entry location.

Returns
TypeDescription
\SpreadsheetEntry
methodpublicgetSpreadsheetFeed(mixed $location = null) : \Zend_Gdata_Spreadsheets_SpreadsheetFeed

Gets a spreadsheet feed.

Parameters
NameTypeDescription
$locationmixed

A DocumentQuery or a string URI specifying the feed location.

Returns
TypeDescription
\Zend_Gdata_Spreadsheets_SpreadsheetFeed
methodpublicgetSpreadsheetListFeedContents(mixed $location) : array

Returns the content of all rows as an associative array

Parameters
NameTypeDescription
$locationmixed

A ListQuery or string URI specifying the feed location.

Returns
TypeDescription
arrayAn array of rows. Each element of the array is an associative array of data
methodpublicgetSpreadsheets(mixed $location = null) : \Zend_Gdata_Spreadsheets_SpreadsheetFeed

Alias for getSpreadsheetFeed

Parameters
NameTypeDescription
$locationmixed

A DocumentQuery or a string URI specifying the feed location.

Returns
TypeDescription
\Zend_Gdata_Spreadsheets_SpreadsheetFeed
methodpublicgetWorksheetFeed(mixed $location) : \Zend_Gdata_Spreadsheets_WorksheetFeed

Gets a worksheet feed.

Parameters
NameTypeDescription
$locationmixed

A DocumentQuery, SpreadsheetEntry, or a string URI

Returns
TypeDescription
\Zend_Gdata_Spreadsheets_WorksheetFeedThe feed of worksheets
methodpublicinsertRow(array $rowData, string $key, string $wkshtId = 'default') : \ListEntry

Inserts a new row with provided data.

Parameters
NameTypeDescription
$rowDataarray

An array of column header to row data

$keystring

The key of the spreadsheet to modify

$wkshtIdstring

(optional) The worksheet to modify

Returns
TypeDescription
\ListEntryThe inserted row
methodpublicupdateCell(int $row, int $col, int $inputValue, string $key, string $wkshtId = 'default') : \CellEntry

Updates an existing cell.

Parameters
NameTypeDescription
$rowint

The row containing the cell to update

$colint

The column containing the cell to update

$inputValueint

The new value for the cell

$keystring

The key for the spreadsheet to be updated

$wkshtIdstring

(optional) The worksheet to be updated

Returns
TypeDescription
\CellEntryThe updated cell entry.
methodpublicupdateRow(\ListEntry $entry, array $newRowData) : void

Updates an existing row with provided data.

Parameters
NameTypeDescription
$entry\ListEntry

The row entry to update

$newRowDataarray

An array of column header to row data

Documentation was generated by phpDocumentor 2.2.0 .