Свойство | Тип | Описание | |
---|---|---|---|
$columnsType | mixed | null | ||
$file | resource | null | ||
$filename | string | null | ||
$footer | |||
$header | string | ||
$position | integer | ||
$showHeaders | boolean |
Метод | Описание | |
---|---|---|
__construct ( string $filename, boolean $showHeaders = true, mixed $columnsType = null ) | ||
close ( ) | ||
open ( ) | ||
write ( array $data ) |
Метод | Описание | |
---|---|---|
getDataType ( string $key, string $value ) : string | ||
getXmlString ( array $fields = [] ) : string | Prepare and return XML string for MS Excel XML from array. |
public __construct ( string $filename, boolean $showHeaders = true, mixed $columnsType = null ) | ||
$filename | string | |
$showHeaders | boolean | |
$columnsType | mixed | Define cells type to use If string: force all cells to the given type. e.g: 'Number' If array: force only given cells. e.g: array('ean'=>'String', 'price'=>'Number') If null: will guess the type. 'Number' if value is numeric, 'String' otherwise |