\PHPExcel_Writer_Excel5_BIFFwriter

PHPExcel_Writer_Excel5_BIFFwriter

Summary

Methods
Properties
Constants
__construct()
getByteOrder()
_append()
writeData()
_storeBof()
_storeEof()
writeEof()
_addContinue()
$_data
$_datasize
$_limit
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_byte_order
N/A

Properties

$_data

$_data : string

The string containing the data of the BIFF stream

Type

string

$_datasize

$_datasize : int

The size of the data in bytes. Should be the same as strlen($this->_data)

Type

int

$_limit

$_limit : int

The maximum length for a BIFF record (excluding record header and length field). See _addContinue()

Type

int

$_byte_order

$_byte_order : int

The byte order of this architecture. 0 => little endian, 1 => big endian

Type

int

Methods

__construct()

__construct() : mixed

Constructor

Returns

mixed —

getByteOrder()

getByteOrder() : int

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

Returns

int —

_append()

_append(string  $data) : mixed

General storage function

Parameters

string $data

binary data to append

Returns

mixed —

writeData()

writeData(string  $data) : string

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

Parameters

string $data

binary data to write

Returns

string —

_storeBof()

_storeBof(int  $type) : mixed

Writes Excel BOF record to indicate the beginning of a stream or sub-stream in the BIFF file.

Parameters

int $type

Type of BIFF file to write: 0x0005 Workbook, 0x0010 Worksheet.

Returns

mixed —

_storeEof()

_storeEof() : mixed

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

Returns

mixed —

writeEof()

writeEof() : mixed

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

Returns

mixed —

_addContinue()

_addContinue(string  $data) : string

Excel limits the size of BIFF records. In Excel 5 the limit is 2084 bytes. In Excel 97 the limit is 8228 bytes. Records that are longer than these limits must be split up into CONTINUE blocks.

This function takes a long BIFF record and inserts CONTINUE records as necessary.

Parameters

string $data

The original binary data to be written

Returns

string —

A very convenient string of continue blocks