PHP Class Cml\Vendor\Excel

Afficher le fichier Open project: linhecheng/cmlphp

Méthodes publiques

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

Private Methods

Méthode Description
addRow ( array $data ) : string 循环生成Excel行

Method Details

config() public méthode

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

excelXls() public méthode

生成Excel文件
public excelXls ( array $data ) : void
$data array
Résultat void

setTitleRow() public méthode

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