PHP Class Google\Spreadsheet\SpreadsheetFeed

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

Protected Properties

Property Type Description
$xml SimpleXMLElement The spreadsheet feed xml object

Public Methods

Method Description
__construct ( SimpleXMLElement $xml ) Initializes the spreadsheet feed object
getById ( string $id ) : Spreadsheet Gets a spreadhseet from the feed by its ID in google drive.
getByTitle ( string $title ) : Spreadsheet Gets a spreadhseet from the feed by its title. i.e. the name of the spreadsheet in google drive. This method will return only the first spreadsheet found with the specified title.
getEntries ( ) : Spreadsheet[] Get all spreadsheets in the feed
getId ( ) : string Get the feed id. Returns the full url.
getXml ( ) : integer Get the raw XML

Method Details

__construct() public method

Initializes the spreadsheet feed object
public __construct ( SimpleXMLElement $xml )
$xml SimpleXMLElement

getById() public method

Gets a spreadhseet from the feed by its ID in google drive.
public getById ( string $id ) : Spreadsheet
$id string
return Spreadsheet

getByTitle() public method

Gets a spreadhseet from the feed by its title. i.e. the name of the spreadsheet in google drive. This method will return only the first spreadsheet found with the specified title.
public getByTitle ( string $title ) : Spreadsheet
$title string
return Spreadsheet

getEntries() public method

Get all spreadsheets in the feed
public getEntries ( ) : Spreadsheet[]
return Spreadsheet[]

getId() public method

Get the feed id. Returns the full url.
public getId ( ) : string
return string

getXml() public method

Get the raw XML
public getXml ( ) : integer
return integer

Property Details

$xml protected property

The spreadsheet feed xml object
protected SimpleXMLElement $xml
return SimpleXMLElement