ILIAS
release_4-3 Revision
|
Public Member Functions | |
Spreadsheet_Excel_Writer_BIFFwriter () | |
Constructor. | |
_setByteOrder () | |
Determine the byte order and store it as class data to avoid recalculating it for each call to new(). | |
_prepend ($data) | |
General storage function. | |
_append ($data) | |
General storage function. | |
_storeBof ($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. | |
_addContinue ($data) | |
Excel limits the size of BIFF records. | |
setTempDir ($dir) | |
Sets the temp dir used for storing the OLE file. | |
Public Member Functions inherited from PEAR | |
PEAR ($error_class=null) | |
Constructor. | |
_PEAR () | |
Destructor (the emulated type of...). | |
& | getStaticProperty ($class, $var) |
If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. | |
registerShutdownFunc ($func, $args=array()) | |
Use this function to register a shutdown method for static classes. | |
isError ($data, $code=null) | |
Tell whether a value is a PEAR error. | |
setErrorHandling ($mode=null, $options=null) | |
Sets how errors generated by this object should be handled. | |
expectError ($code= '*') | |
This method is used to tell which errors you expect to get. | |
popExpect () | |
This method pops one element off the expected error codes stack. | |
_checkDelExpect ($error_code) | |
This method checks unsets an error code if available. | |
delExpect ($error_code) | |
This method deletes all occurences of the specified element from the expected error codes stack. | |
& | raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. | |
& | throwError ($message=null, $code=null, $userinfo=null) |
Simpler form of raiseError with fewer options. | |
staticPushErrorHandling ($mode, $options=null) | |
staticPopErrorHandling () | |
pushErrorHandling ($mode, $options=null) | |
Push a new error handler on top of the error handler options stack. | |
popErrorHandling () | |
Pop the last error handler used. | |
loadExtension ($ext) | |
OS independant PHP extension load. |
Data Fields | |
$_BIFF_version = 0x0500 | |
$_byte_order | |
$_data | |
$_datasize | |
$_limit | |
$_tmp_dir | |
Data Fields inherited from PEAR | |
$_debug = false | |
$_default_error_mode = null | |
$_default_error_options = null | |
$_default_error_handler = '' | |
$_error_class = 'PEAR_Error' | |
$_expected_errors = array() |
Definition at line 54 of file BIFFwriter.php.
Spreadsheet_Excel_Writer_BIFFwriter::_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.
string | $data | The original binary data to be written |
Definition at line 219 of file BIFFwriter.php.
References $_limit, and $data.
Referenced by _append(), Spreadsheet_Excel_Writer_Worksheet\_append(), and _prepend().
Spreadsheet_Excel_Writer_BIFFwriter::_append | ( | $data | ) |
General storage function.
string | $data | binary data to append private |
Reimplemented in Spreadsheet_Excel_Writer_Worksheet.
Definition at line 153 of file BIFFwriter.php.
References $data, and _addContinue().
Referenced by Spreadsheet_Excel_Writer_Workbook\_storeAllFonts(), Spreadsheet_Excel_Writer_Workbook\_storeAllXfs(), Spreadsheet_Excel_Writer_Workbook\_storeBoundsheet(), Spreadsheet_Excel_Writer_Workbook\_storeCodepage(), Spreadsheet_Excel_Writer_Workbook\_storeCountry(), Spreadsheet_Excel_Writer_Workbook\_storeDatemode(), _storeEof(), Spreadsheet_Excel_Writer_Workbook\_storeExterncount(), Spreadsheet_Excel_Writer_Workbook\_storeExternsheet(), Spreadsheet_Excel_Writer_Workbook\_storeExternsheetBiff8(), Spreadsheet_Excel_Writer_Workbook\_storeNameLong(), Spreadsheet_Excel_Writer_Workbook\_storeNameShort(), Spreadsheet_Excel_Writer_Workbook\_storeNumFormat(), Spreadsheet_Excel_Writer_Workbook\_storePalette(), Spreadsheet_Excel_Writer_Workbook\_storeSharedStringsTable(), Spreadsheet_Excel_Writer_Workbook\_storeStyle(), Spreadsheet_Excel_Writer_Workbook\_storeSupbookInternal(), and Spreadsheet_Excel_Writer_Workbook\_storeWindow1().
Spreadsheet_Excel_Writer_BIFFwriter::_prepend | ( | $data | ) |
General storage function.
string | $data | binary data to prepend private |
Definition at line 138 of file BIFFwriter.php.
References $data, and _addContinue().
Referenced by _storeBof().
Spreadsheet_Excel_Writer_BIFFwriter::_setByteOrder | ( | ) |
Determine the byte order and store it as class data to avoid recalculating it for each call to new().
private
Definition at line 115 of file BIFFwriter.php.
References PEAR\raiseError().
Referenced by Spreadsheet_Excel_Writer_BIFFwriter().
Spreadsheet_Excel_Writer_BIFFwriter::_storeBof | ( | $type | ) |
Writes Excel BOF record to indicate the beginning of a stream or sub-stream in the BIFF file.
integer | $type | Type of BIFF file to write: 0x0005 Workbook, 0x0010 Worksheet. private |
Definition at line 170 of file BIFFwriter.php.
References $_BIFF_version, $data, and _prepend().
Referenced by Spreadsheet_Excel_Writer_Workbook\_storeWorkbook(), and Spreadsheet_Excel_Writer_Worksheet\close().
Spreadsheet_Excel_Writer_BIFFwriter::_storeEof | ( | ) |
Writes Excel EOF record to indicate the end of a BIFF stream.
private
Definition at line 199 of file BIFFwriter.php.
References _append().
Referenced by Spreadsheet_Excel_Writer_Workbook\_storeWorkbook(), and Spreadsheet_Excel_Writer_Worksheet\close().
Spreadsheet_Excel_Writer_BIFFwriter::setTempDir | ( | $dir | ) |
Sets the temp dir used for storing the OLE file.
public
string | $dir | The dir to be used as temp dir |
Definition at line 252 of file BIFFwriter.php.
Spreadsheet_Excel_Writer_BIFFwriter::Spreadsheet_Excel_Writer_BIFFwriter | ( | ) |
Constructor.
public
Definition at line 98 of file BIFFwriter.php.
References _setByteOrder().
Referenced by Spreadsheet_Excel_Writer_Workbook\Spreadsheet_Excel_Writer_Workbook(), and Spreadsheet_Excel_Writer_Worksheet\Spreadsheet_Excel_Writer_Worksheet().
Spreadsheet_Excel_Writer_BIFFwriter::$_BIFF_version = 0x0500 |
Definition at line 60 of file BIFFwriter.php.
Referenced by _storeBof().
Spreadsheet_Excel_Writer_BIFFwriter::$_byte_order |
Definition at line 66 of file BIFFwriter.php.
Spreadsheet_Excel_Writer_BIFFwriter::$_data |
Definition at line 72 of file BIFFwriter.php.
Referenced by Spreadsheet_Excel_Writer_Worksheet\getData().
Spreadsheet_Excel_Writer_BIFFwriter::$_datasize |
Definition at line 78 of file BIFFwriter.php.
Referenced by Spreadsheet_Excel_Writer_Workbook\_calcSheetOffsets().
Spreadsheet_Excel_Writer_BIFFwriter::$_limit |
Definition at line 85 of file BIFFwriter.php.
Referenced by _addContinue().
Spreadsheet_Excel_Writer_BIFFwriter::$_tmp_dir |
Definition at line 91 of file BIFFwriter.php.