class BIFFwriter (View source)

Properties

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

Methods

__construct()

Constructor.

static int
getByteOrder()

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

append(string $data)

General storage function.

string
writeData(string $data)

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

storeBof(int $type)

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

storeEof()

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

writeEof()

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

Details

__construct()

Constructor.

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

protected append(string $data)

General storage function.

Parameters

string $data binary data to append

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

protected storeBof(int $type)

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

protected storeEof()

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

writeEof()

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