PHP Class Google\Spreadsheet\SpreadsheetService

Author: Asim Liaquat ([email protected])
Datei anzeigen Open project: asimlqt/php-google-spreadsheet-client Class Usage Examples

Public Methods

Method Description
getPublicSpreadsheet ( string $id ) : WorksheetFeed Get public spreadsheet
getResourceById ( string $resource, string $id ) : Object Fetch a resource directly with having to traverse the tree from the top. This will provide a huge performance benefit to the application if you already have the id.
getSpreadsheetFeed ( ) : SpreadsheetFeed Fetches a list of spreadsheets from google drive.

Method Details

getPublicSpreadsheet() public method

Get public spreadsheet
public getPublicSpreadsheet ( string $id ) : WorksheetFeed
$id string Only the actual id and not the full url
return WorksheetFeed

getResourceById() public method

All classes which have a "getId()" method can be used. e.g. - SpreadsheetFeed - Spreadsheet - WorksheetFeed - Worksheet - ListFeed - CellFeed
public getResourceById ( string $resource, string $id ) : Object
$resource string the full path of the class
$id string the id (full url) of the resource
return Object

getSpreadsheetFeed() public method

Fetches a list of spreadsheets from google drive.
public getSpreadsheetFeed ( ) : SpreadsheetFeed
return SpreadsheetFeed