class PHPExcel_Writer_Excel5_Workbook extends PHPExcel_Writer_Excel5_BIFFwriter

Properties

string $_data The string containing the data of the BIFF stream from PHPExcel_Writer_Excel5_BIFFwriter
integer $_datasize The size of the data in bytes. Should be the same as strlen($this->_data) from PHPExcel_Writer_Excel5_BIFFwriter

Methods

__construct(PHPExcel $phpExcel = null, int $str_total, int $str_unique, array $str_table, array $colors, mixed $parser)

Class constructor

static int
getByteOrder()

Determine the byte order and store it as class data to avoid recalculating it for each call to new().

string
writeData(string $data)

General storage function like append, but returns string instead of modifying $this->_data

writeEof()

Writes Excel EOF record to indicate the end of a BIFF stream.

int
addXfWriter(PHPExcel_Style $style, boolean $isStyleXf = false)

Add a new XF writer

int
addFont(PHPExcel_Style_Font $font)

Add a font to added fonts

string
writeWorkbook(array $pWorksheetSizes = null)

Assemble worksheets into a workbook and send the BIFF data to an OLE storage.

getEscher()

Get Escher object

setEscher(PHPExcel_Shared_Escher $pValue = null)

Set Escher object

Details

at line 204
__construct(PHPExcel $phpExcel = null, int $str_total, int $str_unique, array $str_table, array $colors, mixed $parser)

Class constructor

Parameters

PHPExcel $phpExcel The Workbook
int $str_total &$str_total Total number of strings
int $str_unique &$str_unique Total number of unique strings
array $str_table &$str_table String Table
array $colors &$colors Colour Table
mixed $parser The formula parser created for the Workbook

static int getByteOrder()

Determine the byte order and store it as class data to avoid recalculating it for each call to new().

Return Value

int

string writeData(string $data)

General storage function like append, but returns string instead of modifying $this->_data

Parameters

string $data binary data to write

Return Value

string

writeEof()

Writes Excel EOF record to indicate the end of a BIFF stream.

at line 252
int addXfWriter(PHPExcel_Style $style, boolean $isStyleXf = false)

Add a new XF writer

Parameters

PHPExcel_Style $style
boolean $isStyleXf Is it a style XF?

Return Value

int Index to XF record

at line 302
int addFont(PHPExcel_Style_Font $font)

Add a font to added fonts

Parameters

PHPExcel_Style_Font $font

Return Value

int Index to FONT record

at line 426
string writeWorkbook(array $pWorksheetSizes = null)

Assemble worksheets into a workbook and send the BIFF data to an OLE storage.

Parameters

array $pWorksheetSizes The sizes in bytes of the binary worksheet streams

Return Value

string Binary data for workbook stream

at line 1439
PHPExcel_Shared_Escher getEscher()

Get Escher object

Return Value

PHPExcel_Shared_Escher

at line 1449
setEscher(PHPExcel_Shared_Escher $pValue = null)

Set Escher object

Parameters

PHPExcel_Shared_Escher $pValue