PHP Class SimpleExcel\Writer\XMLWriter

Author: Faisalman
Inheritance: extends BaseWriter, implements SimpleExcel\Writer\IWriter
Show file Open project: faisalman/simple-excel-php Class Usage Examples

Protected Properties

Property Type Description
$content_type string Defines content-type for HTTP header
$file_extension string Defines file extension to be used when saving file

Public Methods

Method Description
__construct ( ) : void
addRow ( array $values ) : void Adding row data to XML
saveString ( ) : string Get document content as string
setData ( array $values ) : void Set XML data
setDocProp ( string $prop, string $val ) : void Set a document property of the XML

Method Details

__construct() public method

public __construct ( ) : void
return void

addRow() public method

Adding row data to XML
public addRow ( array $values ) : void
$values array An array contains ordered value for every cell
return void

saveString() public method

Get document content as string
public saveString ( ) : string
return string Content of document

setData() public method

Set XML data
public setData ( array $values ) : void
$values array An array contains ordered value of arrays for all fields
return void

setDocProp() public method

Set a document property of the XML
public setDocProp ( string $prop, string $val ) : void
$prop string Document property to be set
$val string Value of the document property
return void

Property Details

$content_type protected property

Defines content-type for HTTP header
protected string $content_type
return string

$file_extension protected property

Defines file extension to be used when saving file
protected string $file_extension
return string