BIFFwriter
in package
Based on PERL Spreadsheet::WriteExcel module (by John McNamara) Ported to PHP for PEAR::Spreadsheet_Excel_Writer_BIFFwriter (by Xavier Noguer) Relicensed under the MIT License by both authors.
Table of Contents
Properties
- $biffData : string|null
- The string containing the data of the BIFF stream.
- $biffDataSize : int
- The size of the data in bytes. Should be the same as strlen($this->biffData).
Methods
- __construct() : mixed
- Constructor.
- getBiffDataSize() : int
- getByteOrder() : int
- Determine the byte order and store it as class data to avoid recalculating it for each call to new().
- writeData() : string
- General storage function like append, but returns string instead of modifying $this->biffData.
- writeEof() : string
- Writes Excel EOF record to indicate the end of a BIFF stream.
- append() : void
- General storage function.
- storeBof() : void
- Writes Excel BOF record to indicate the beginning of a stream or sub-stream in the BIFF file.
- storeEof() : void
- Writes Excel EOF record to indicate the end of a BIFF stream.
Properties
$biffData
The string containing the data of the BIFF stream.
protected
string|null
$biffData
$biffDataSize
The size of the data in bytes. Should be the same as strlen($this->biffData).
protected
int
$biffDataSize
Methods
__construct()
Constructor.
public
__construct() : mixed
getBiffDataSize()
public
getBiffDataSize() : int
Return values
intgetByteOrder()
Determine the byte order and store it as class data to avoid recalculating it for each call to new().
public
static getByteOrder() : int
Return values
intwriteData()
General storage function like append, but returns string instead of modifying $this->biffData.
public
writeData(string $data) : string
Parameters
- $data : string
-
binary data to write
Return values
stringwriteEof()
Writes Excel EOF record to indicate the end of a BIFF stream.
public
writeEof() : string
Return values
stringappend()
General storage function.
protected
append(string $data) : void
Parameters
- $data : string
-
binary data to append
storeBof()
Writes Excel BOF record to indicate the beginning of a stream or sub-stream in the BIFF file.
protected
storeBof(int $type) : void
Parameters
- $type : int
-
type of BIFF file to write: 0x0005 Workbook, 0x0010 Worksheet
storeEof()
Writes Excel EOF record to indicate the end of a BIFF stream.
protected
storeEof() : void