Moodle  2.2.1
http://www.collinsharper.com
Spreadsheet_Excel_Writer_BIFFwriter Class Reference
Inheritance diagram for Spreadsheet_Excel_Writer_BIFFwriter:
Collaboration diagram for Spreadsheet_Excel_Writer_BIFFwriter:

Public Member Functions

 Spreadsheet_Excel_Writer_BIFFwriter ()
 _setByteOrder ()
 _prepend ($data)
 _append ($data)
 _storeBof ($type)
 _storeEof ()
 _addContinue ($data)

Data Fields

 $_BIFF_version = 0x0500
 $_byte_order
 $_data
 $_datasize
 $_limit

Detailed Description

Definition at line 54 of file BIFFwriter.php.


Member Function Documentation

_addContinue ( 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 212 of file BIFFwriter.php.

Here is the caller graph for this function:

_append ( data)

General storage function

Parameters:
string$databinary data to append private

Reimplemented in Spreadsheet_Excel_Writer_Worksheet.

Definition at line 146 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 131 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 108 of file BIFFwriter.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_storeBof ( 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 163 of file BIFFwriter.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_storeEof ( )

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

private

Definition at line 192 of file BIFFwriter.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Constructor

public

Definition at line 92 of file BIFFwriter.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$_BIFF_version = 0x0500

Definition at line 60 of file BIFFwriter.php.

$_byte_order

Definition at line 66 of file BIFFwriter.php.

$_data

Definition at line 72 of file BIFFwriter.php.

$_datasize

Definition at line 78 of file BIFFwriter.php.

$_limit

Definition at line 85 of file BIFFwriter.php.


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