PHP Класс Google\Spreadsheet\Spreadsheet

Автор: Asim Liaquat ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$xml SimpleXMLElement The spreadsheet xml object

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

addWorksheet() публичный Метод

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
Результат Worksheet

getId() публичный Метод

Get the spreadsheet id
public getId ( ) : string
Результат string

getTitle() публичный Метод

Returns the title (name) of the spreadsheet
public getTitle ( ) : string
Результат string

getUpdated() публичный Метод

Get the updated date
public getUpdated ( ) : DateTime
Результат DateTime

getWorksheetByTitle() публичный Метод

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
Результат Worksheet

getWorksheetFeed() публичный Метод

Get all the worksheets which belong to this spreadsheet
public getWorksheetFeed ( ) : WorksheetFeed
Результат WorksheetFeed

getWorksheetsFeedUrl() публичный Метод

Returns the feed url of the spreadsheet
public getWorksheetsFeedUrl ( ) : string
Результат string

getXml() публичный Метод

Get the raw XML
public getXml ( ) : integer
Результат integer

Описание свойств

$xml защищенное свойство

The spreadsheet xml object
protected SimpleXMLElement $xml
Результат SimpleXMLElement