PHP Class Google\Spreadsheet\Spreadsheet

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

Protected Properties

Свойство Type Description
$xml SimpleXMLElement The spreadsheet xml object

Méthodes publiques

Méthode Description
__construct ( SimpleXMLElement $xml ) Initializes the spreadsheet object
addWorksheet ( string $title, integer $rowCount = 100, integer $colCount = 10 ) : Worksheet Add a new worksheet to this spreadsheet
getId ( ) : string Get the spreadsheet id
getTitle ( ) : string Returns the title (name) of the spreadsheet
getUpdated ( ) : DateTime Get the updated date
getWorksheetByTitle ( $title ) : Worksheet Get a single worksheet by it's title. If there is more than one worksheet with the same title then the first one matched will be returned.
getWorksheetFeed ( ) : WorksheetFeed Get all the worksheets which belong to this spreadsheet
getWorksheetsFeedUrl ( ) : string Returns the feed url of the spreadsheet
getXml ( ) : integer Get the raw XML

Method Details

__construct() public méthode

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

addWorksheet() public méthode

Add a new worksheet to this spreadsheet
public addWorksheet ( string $title, integer $rowCount = 100, integer $colCount = 10 ) : Worksheet
$title string
$rowCount integer default is 100
$colCount integer default is 10
Résultat Worksheet

getId() public méthode

Get the spreadsheet id
public getId ( ) : string
Résultat string

getTitle() public méthode

Returns the title (name) of the spreadsheet
public getTitle ( ) : string
Résultat string

getUpdated() public méthode

Get the updated date
public getUpdated ( ) : DateTime
Résultat DateTime

getWorksheetByTitle() public méthode

Get a single worksheet by it's title. If there is more than one worksheet with the same title then the first one matched will be returned.
public getWorksheetByTitle ( $title ) : Worksheet
Résultat Worksheet

getWorksheetFeed() public méthode

Get all the worksheets which belong to this spreadsheet
public getWorksheetFeed ( ) : WorksheetFeed
Résultat WorksheetFeed

getWorksheetsFeedUrl() public méthode

Returns the feed url of the spreadsheet
public getWorksheetsFeedUrl ( ) : string
Résultat string

getXml() public méthode

Get the raw XML
public getXml ( ) : integer
Résultat integer

Property Details

$xml protected_oe property

The spreadsheet xml object
protected SimpleXMLElement $xml
Résultat SimpleXMLElement