API Documentation

Gdata/Spreadsheets.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Gdata
subpackage
Spreadsheets
version
$Id: Spreadsheets.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Gdata_Spreadsheets

Description

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.

Zend_Gdata_Spreadsheets

Extends from
Zend_Gdata
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
link
http://code.google.com/apis/gdata/spreadsheets.html
package
Zend_Gdata
subpackage
Spreadsheets
Constants
SPREADSHEETS_FEED_URI
SPREADSHEETS_POST_URI
WORKSHEETS_FEED_LINK_URI
LIST_FEED_LINK_URI
CELL_FEED_LINK_URI
AUTH_SERVICE_NAME
Properties
$namespaces
Methods
__construct
getSpreadsheetFeed
getSpreadsheetEntry
getWorksheetFeed
GetWorksheetEntry
getCellFeed
getCellEntry
getListFeed
getListEntry
updateCell
insertRow
updateRow
deleteRow
getSpreadsheetListFeedContents
getSpreadsheetCellFeedContents
getSpreadsheets

Description

Gdata Spreadsheets

Constants

SPREADSHEETS_FEED_URI

 SPREADSHEETS_FEED_URI = 'http://spreadsheets.google.com/feeds/spreadsheets'

Details

value
http://spreadsheets.google.com/feeds/spreadsheets

SPREADSHEETS_POST_URI

 SPREADSHEETS_POST_URI = 'http://spreadsheets.google.com/feeds/spreadsheets/private/full'

Details

value
http://spreadsheets.google.com/feeds/spreadsheets/private/full

WORKSHEETS_FEED_LINK_URI

 WORKSHEETS_FEED_LINK_URI = 'http://schemas.google.com/spreadsheets/2006#worksheetsfeed'

Details

value
http://schemas.google.com/spreadsheets/2006#worksheetsfeed

LIST_FEED_LINK_URI

 LIST_FEED_LINK_URI = 'http://schemas.google.com/spreadsheets/2006#listfeed'

Details

value
http://schemas.google.com/spreadsheets/2006#listfeed

CELL_FEED_LINK_URI

 CELL_FEED_LINK_URI = 'http://schemas.google.com/spreadsheets/2006#cellsfeed'

Details

value
http://schemas.google.com/spreadsheets/2006#cellsfeed

AUTH_SERVICE_NAME

 AUTH_SERVICE_NAME = 'wise'

Details

value
wise

Properties

$namespaces

array $namespaces = 'array'

Namespaces used for Zend_Gdata_Photos

Details

$namespaces
array
visibility
public
default
array
final
false
static
true

Methods

GetWorksheetEntry

GetWorksheetEntry( string $location ) : WorksheetEntry

Gets a worksheet entry.

Arguments
$location
string
A DocumentQuery or a URI specifying the entry location.
Output
WorksheetEntry
Details
visibility
public
final
false
static
false

__construct

__construct( Zend_Http_Client $client = null, string $applicationId = MyCompany-MyApp-1.0 ) :

Create Gdata_Spreadsheets object

Arguments
$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
Details
visibility
public
final
false
static
false

deleteRow

deleteRow( ListEntry $entry ) :

Deletes an existing row .

Arguments
$entry
ListEntry
The row to delete
Details
visibility
public
final
false
static
false

getCellEntry

getCellEntry( string $location ) : CellEntry

Gets a cell entry.

Arguments
$location
string
A CellQuery or a URI specifying the entry location.
Output
CellEntry
Details
visibility
public
final
false
static
false

getCellFeed

getCellFeed( string $location ) : CellFeed

Gets a cell feed.

Arguments
$location
string
A CellQuery, WorksheetEntry or a URI specifying the feed location.
Output
CellFeed
Details
visibility
public
final
false
static
false

getListEntry

getListEntry( string $location ) : ListEntry

Gets a list entry.

Arguments
$location
string
A ListQuery or a URI specifying the entry location.
Output
ListEntry
Details
visibility
public
final
false
static
false

getListFeed

getListFeed( mixed $location ) : ListFeed

Gets a list feed.

Arguments
$location
mixed
A ListQuery, WorksheetEntry or string URI specifying the feed location.
Output
ListFeed
Details
visibility
public
final
false
static
false

getSpreadsheetCellFeedContents

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'.

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

Arguments
$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
Output
array
An associative array of cells
Details
visibility
public
final
false
static
false

getSpreadsheetEntry

getSpreadsheetEntry( string $location ) : SpreadsheetEntry

Gets a spreadsheet entry.

Arguments
$location
string
A DocumentQuery or a URI specifying the entry location.
Output
SpreadsheetEntry
Details
visibility
public
final
false
static
false

getSpreadsheetFeed

getSpreadsheetFeed( mixed $location = null ) : Zend_Gdata_Spreadsheets_SpreadsheetFeed

Gets a spreadsheet feed.

Arguments
$location
mixed
A DocumentQuery or a string URI specifying the feed location.
Details
visibility
public
final
false
static
false

getSpreadsheetListFeedContents

getSpreadsheetListFeedContents( mixed $location ) : array

Returns the content of all rows as an associative array

Arguments
$location
mixed
A ListQuery or string URI specifying the feed location.
Output
array
An array of rows. Each element of the array is an associative array of data
Details
visibility
public
final
false
static
false

getSpreadsheets

getSpreadsheets( mixed $location = null ) : Zend_Gdata_Spreadsheets_SpreadsheetFeed

Alias for getSpreadsheetFeed

Arguments
$location
mixed
A DocumentQuery or a string URI specifying the feed location.
Details
visibility
public
final
false
static
false

getWorksheetFeed

getWorksheetFeed( mixed $location ) : Zend_Gdata_Spreadsheets_WorksheetFeed

Gets a worksheet feed.

Arguments
$location
mixed
A DocumentQuery, SpreadsheetEntry, or a string URI
Output
Zend_Gdata_Spreadsheets_WorksheetFeed
The feed of worksheets
Details
visibility
public
final
false
static
false

insertRow

insertRow( array $rowData, string $key, string $wkshtId = default ) : ListEntry

Inserts a new row with provided data.

Arguments
$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
Output
ListEntry
The inserted row
Details
visibility
public
final
false
static
false

updateCell

updateCell( int $row, int $col, int $inputValue, string $key, string $wkshtId = default ) : CellEntry

Updates an existing cell.

Arguments
$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
Output
CellEntry
The updated cell entry.
Details
visibility
public
final
false
static
false

updateRow

updateRow( ListEntry $entry, array $newRowData ) :

Updates an existing row with provided data.

Arguments
$entry
ListEntry
The row entry to update
$newRowData
array
An array of column header to row data
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.