PHP Class Google\Spreadsheet\CellFeed

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

Protected Properties

Свойство Type Description
$entries array
$xml SimpleXMLElement The xml representation of the feed

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

Constructor
public __construct ( SimpleXMLElement $xml )
$xml SimpleXMLElement

createCell() public méthode

Create a entry to insert data
public createCell ( integer $row, integer $col, string $value ) : CellEntry
$row integer
$col integer
$value string
Résultat CellEntry

editCell() public méthode

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
Résultat void

getBatchUrl() public méthode

public getBatchUrl ( ) : string
Résultat string

getCell() public méthode

public getCell ( integer $row, integer $col ) : CellEntry | null
$row integer
$col integer
Résultat CellEntry | null

getEntries() public méthode

Get the feed entries
public getEntries ( ) : array
Résultat array \Google\Spreadsheet\CellEntry

getId() public méthode

Get the feed id. Returns the full url.
public getId ( ) : string
Résultat string

getPostUrl() public méthode

Get the feed post url
public getPostUrl ( ) : string
Résultat string

getXml() public méthode

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

insertBatch() public méthode

public insertBatch ( BatchRequest $batchRequest ) : BatchResponse
$batchRequest Google\Spreadsheet\Batch\BatchRequest
Résultat Google\Spreadsheet\Batch\BatchResponse

toArray() public méthode

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
Résultat array

updateBatch() public méthode

public updateBatch ( BatchRequest $batchRequest ) : BatchResponse
$batchRequest Google\Spreadsheet\Batch\BatchRequest
Résultat Google\Spreadsheet\Batch\BatchResponse

Property Details

$entries protected_oe property

protected array $entries
Résultat array

$xml protected_oe property

The xml representation of the feed
protected SimpleXMLElement $xml
Résultat SimpleXMLElement