PHP Class Cml\Vendor\Excel

Show file Open project: linhecheng/cmlphp

Public Methods

Method Description
config ( string $enCoding, boolean $boolean, string $title, string $filename ) : void Excel基础配置
excelXls ( array $data ) : void 生成Excel文件
setTitleRow ( array $titleArr ) 添加标题行

Private Methods

Method Description
addRow ( array $data ) : string 循环生成Excel行

Method Details

config() public method

Excel基础配置
public config ( string $enCoding, boolean $boolean, string $title, string $filename ) : void
$enCoding string 编码
$boolean boolean 转换类型
$title string 表标题
$filename string Excel文件名
return void

excelXls() public method

生成Excel文件
public excelXls ( array $data ) : void
$data array
return void

setTitleRow() public method

添加标题行
public setTitleRow ( array $titleArr )
$titleArr array