PHP 클래스 SimpleExcel\Writer\BaseWriter

저자: Faisalman
상속: implements SimpleExcel\Writer\IWriter
파일 보기 프로젝트 열기: faisalman/simple-excel-php

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

public __construct ( ) : void
리턴 void

addRow() 공개 메소드

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

saveFile() 공개 메소드

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
리턴 void

saveString() 공개 메소드

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

setData() 공개 메소드

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

프로퍼티 상세

$content_type 보호되어 있는 프로퍼티

Defines content-type for HTTP header
protected string $content_type
리턴 string

$file_extension 보호되어 있는 프로퍼티

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

$tabl_data 보호되어 있는 프로퍼티

Holds tabular data
protected array $tabl_data
리턴 array