PHP 클래스 Box\Spout\Writer\ODS\Writer

상속: extends Box\Spout\Writer\AbstractMultiSheetsWriter
파일 보기 프로젝트 열기: box/spout 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$book The workbook for the ODS file
$headerContentType Content-Type value for the header
$tempFolder Temporary folder where the files to create the ODS will be stored

공개 메소드들

메소드 설명
setTempFolder ( string $tempFolder ) : Writer Sets a custom temporary folder for creating intermediate files/folders.

보호된 메소드들

메소드 설명
addRowToWriter ( array $dataRow, Style $style ) : void Adds data to the currently opened writer.
closeWriter ( ) : void Closes the writer, preventing any additional writing.
getWorkbook ( ) : Box\Spout\Writer\ODS\Internal\Workbook
openWriter ( ) : void Configures the write and sets the current sheet pointer to a new sheet.

메소드 상세

addRowToWriter() 보호된 메소드

If shouldCreateNewSheetsAutomatically option is set to true, it will handle pagination with the creation of new worksheets if one worksheet has reached its maximum capicity.
protected addRowToWriter ( array $dataRow, Style $style ) : void
$dataRow array Array containing data to be written. Example $dataRow = ['data1', 1234, null, '', 'data5'];
$style Box\Spout\Writer\Style\Style Style to be applied to the row.
리턴 void

closeWriter() 보호된 메소드

Closes the writer, preventing any additional writing.
protected closeWriter ( ) : void
리턴 void

getWorkbook() 보호된 메소드

protected getWorkbook ( ) : Box\Spout\Writer\ODS\Internal\Workbook
리턴 Box\Spout\Writer\ODS\Internal\Workbook The workbook representing the file to be written

openWriter() 보호된 메소드

Configures the write and sets the current sheet pointer to a new sheet.
protected openWriter ( ) : void
리턴 void

setTempFolder() 공개 메소드

This must be set before opening the writer.
public setTempFolder ( string $tempFolder ) : Writer
$tempFolder string Temporary folder where the files to create the ODS will be stored
리턴 Writer

프로퍼티 상세

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

The workbook for the ODS file
protected $book

$headerContentType 보호되어 있는 정적으로 프로퍼티

Content-Type value for the header
protected static $headerContentType

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

Temporary folder where the files to create the ODS will be stored
protected $tempFolder