PHP Class SimpleExcel\Writer\BaseWriter

Author: Faisalman
Inheritance: implements SimpleExcel\Writer\IWriter
Afficher le fichier Open project: faisalman/simple-excel-php

Protected Properties

Свойство Type Description
$content_type string Defines content-type for HTTP header
$file_extension string Defines file extension to be used when saving file
$tabl_data array Holds tabular data

Méthodes publiques

Méthode Description
__construct ( ) : void
addRow ( array $values, $end = TRUE ) : void Adding row data to table
saveFile ( string $filename, string $target = NULL ) : void Export the document
saveString ( ) : string Get document content as string
setData ( array $values ) : void Set tabular data

Method Details

__construct() public méthode

public __construct ( ) : void
Résultat void

addRow() public méthode

Adding row data to table
public addRow ( array $values, $end = TRUE ) : void
$values array An array contains ordered value for every cell
Résultat void

saveFile() public méthode

Export the document
public saveFile ( string $filename, string $target = NULL ) : void
$filename string Name for the saved file (extension will be set automatically)
$target string Save location
Résultat void

saveString() public méthode

Get document content as string
public saveString ( ) : string
Résultat string Content of document

setData() public méthode

Set tabular data
public setData ( array $values ) : void
$values array An array contains ordered value of arrays for all fields
Résultat void

Property Details

$content_type protected_oe property

Defines content-type for HTTP header
protected string $content_type
Résultat string

$file_extension protected_oe property

Defines file extension to be used when saving file
protected string $file_extension
Résultat string

$tabl_data protected_oe property

Holds tabular data
protected array $tabl_data
Résultat array