PHP Класс Google\Spreadsheet\CellFeed

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

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

Свойство Тип Описание
$entries array
$xml SimpleXMLElement The xml representation of the feed

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

Метод Описание
__construct ( SimpleXMLElement $xml ) Constructor
createCell ( integer $row, integer $col, string $value ) : CellEntry Create a entry to insert data
editCell ( integer $rowNum, integer $colNum, string $value ) : void Edit a single cell. the row and column indexing start at 1.
getBatchUrl ( ) : string
getCell ( integer $row, integer $col ) : CellEntry | null
getEntries ( ) : array Get the feed entries
getId ( ) : string Get the feed id. Returns the full url.
getPostUrl ( ) : string Get the feed post url
getXml ( ) : integer Get the raw XML
insertBatch ( BatchRequest $batchRequest ) : BatchResponse
toArray ( ) : array Returns the feed entries as a two-dimensional array, indexed by row/column number. Array may be sparse, if returned cell data is sparse.
updateBatch ( BatchRequest $batchRequest ) : BatchResponse

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

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

Constructor
public __construct ( SimpleXMLElement $xml )
$xml SimpleXMLElement

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

Create a entry to insert data
public createCell ( integer $row, integer $col, string $value ) : CellEntry
$row integer
$col integer
$value string
Результат CellEntry

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

So the first column of the first row will be (1,1).
public editCell ( integer $rowNum, integer $colNum, string $value ) : void
$rowNum integer Row number
$colNum integer Column number
$value string Can also be a formula
Результат void

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

public getBatchUrl ( ) : string
Результат string

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

public getCell ( integer $row, integer $col ) : CellEntry | null
$row integer
$col integer
Результат CellEntry | null

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

Get the feed entries
public getEntries ( ) : array
Результат array \Google\Spreadsheet\CellEntry

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

Get the feed id. Returns the full url.
public getId ( ) : string
Результат string

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

Get the feed post url
public getPostUrl ( ) : string
Результат string

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

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

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

public insertBatch ( BatchRequest $batchRequest ) : BatchResponse
$batchRequest Google\Spreadsheet\Batch\BatchRequest
Результат Google\Spreadsheet\Batch\BatchResponse

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

Returns the feed entries as a two-dimensional array, indexed by row/column number. Array may be sparse, if returned cell data is sparse.
public toArray ( ) : array
Результат array

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

public updateBatch ( BatchRequest $batchRequest ) : BatchResponse
$batchRequest Google\Spreadsheet\Batch\BatchRequest
Результат Google\Spreadsheet\Batch\BatchResponse

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

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

protected array $entries
Результат array

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

The xml representation of the feed
protected SimpleXMLElement $xml
Результат SimpleXMLElement