Moodle  2.2.1
http://www.collinsharper.com
BIFFWriter Class Reference

Public Member Functions

 BIFFwriter ()
 _set_byte_order ()
 _prepend ($data)
 _append ($data)
 _store_bof ($type)
 _store_eof ()
 _add_continue ($data)

Data Fields

 $_BIFF_version = 0x0500

Detailed Description

Definition at line 51 of file BIFFwriter.php.


Member Function Documentation

_add_continue ( data)

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$dataThe original binary data to be written
Returns:
string A very convenient string of continue blocks private

Definition at line 183 of file BIFFwriter.php.

Here is the caller graph for this function:

_append ( data)

General storage function

Parameters:
string$databinary data to append private

Definition at line 125 of file BIFFwriter.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_prepend ( data)

General storage function

Parameters:
string$databinary data to prepend private

Definition at line 110 of file BIFFwriter.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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

private

Definition at line 80 of file BIFFwriter.php.

Here is the caller graph for this function:

_store_bof ( type)

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

Parameters:
integer$typetype of BIFF file to write: 0x0005 Workbook, 0x0010 Worksheet. private

Definition at line 141 of file BIFFwriter.php.

Here is the call graph for this function:

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

private

Definition at line 163 of file BIFFwriter.php.

Here is the call graph for this function:

Constructor

public

Definition at line 60 of file BIFFwriter.php.

Here is the call graph for this function:


Field Documentation

$_BIFF_version = 0x0500

Definition at line 53 of file BIFFwriter.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations