[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/include/inc_ext/PEAR/Spreadsheet/Excel/Writer/ -> BIFFwriter.php (summary)

(no description)

File Size: 238 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Spreadsheet_Excel_Writer_BIFFwriter:: (7 methods):
  Spreadsheet_Excel_Writer_BIFFwriter()
  _setByteOrder()
  _prepend()
  _append()
  _storeBof()
  _storeEof()
  _addContinue()


Class: Spreadsheet_Excel_Writer_BIFFwriter  - X-Ref

Class for writing Excel BIFF records.

From "MICROSOFT EXCEL BINARY FILE FORMAT" by Mark O'Brien (Microsoft Corporation):

BIFF (BInary File Format) is the file format in which Excel documents are
saved on disk.  A BIFF file is a complete description of an Excel document.
BIFF files consist of sequences of variable-length records. There are many
different types of BIFF records.  For example, one record type describes a
formula entered into a cell; one describes the size and location of a
window into a document; another describes a picture format.

Spreadsheet_Excel_Writer_BIFFwriter()   X-Ref
Constructor


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


_prepend($data)   X-Ref
General storage function

param: string $data binary data to prepend

_append($data)   X-Ref
General storage function

param: string $data binary data to append

_storeBof($type)   X-Ref
Writes Excel BOF record to indicate the beginning of a stream or
sub-stream in the BIFF file.

param: integer $type Type of BIFF file to write: 0x0005 Workbook,

_storeEof()   X-Ref
Writes Excel EOF record to indicate the end of a BIFF stream.


_addContinue($data)   X-Ref
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.

param: string  $data The original binary data to be written
return: string        A very convenient string of continue blocks



Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7