ILIAS
eassessment Revision 61809
|
Public Member Functions | |
Spreadsheet_Excel_Writer_Workbook ($filename) | |
Class constructor. | |
close () | |
Calls finalization methods. | |
sheets () | |
An accessor for the _worksheets[] array Returns an array of the worksheet objects in a workbook It actually calls to worksheets() | |
worksheets () | |
An accessor for the _worksheets[] array. | |
setVersion ($version) | |
Sets the BIFF version. | |
setCountry ($code) | |
Set the country identifier for the workbook. | |
& | addWorksheet ($name= '') |
Add a new worksheet to the Excel workbook. | |
& | addFormat ($properties=array()) |
Add a new format to the Excel workbook. | |
& | addValidator () |
Create new validator. | |
setCustomColor ($index, $red, $green, $blue) | |
Change the RGB components of the elements in the colour palette. | |
_setPaletteXl97 () | |
Sets the colour palette to the Excel 97+ default. | |
_storeWorkbook () | |
Assemble worksheets into a workbook and send the BIFF data to an OLE storage. | |
setTempDir ($dir) | |
Sets the temp dir used for storing the OLE file. | |
_storeOLEFile () | |
Store the workbook in an OLE container. | |
_calcSheetOffsets () | |
Calculate offsets for Worksheet BOF records. | |
_storeAllFonts () | |
Store the Excel FONT records. | |
_storeAllNumFormats () | |
Store user defined numerical formats i.e. | |
_storeAllXfs () | |
Write all XF records. | |
_storeAllStyles () | |
Write all STYLE records. | |
_storeExterns () | |
Write the EXTERNCOUNT and EXTERNSHEET records. | |
_storeNames () | |
Write the NAME record to define the print area and the repeat rows and cols. | |
_storeCodepage () | |
Stores the CODEPAGE biff record. | |
_storeWindow1 () | |
Write Excel BIFF WINDOW1 record. | |
_storeBoundsheet ($sheetname, $offset) | |
Writes Excel BIFF BOUNDSHEET record. | |
_storeSupbookInternal () | |
Write Internal SUPBOOK record. | |
_storeExternsheetBiff8 () | |
Writes the Excel BIFF EXTERNSHEET record. | |
_storeStyle () | |
Write Excel BIFF STYLE records. | |
_storeNumFormat ($format, $ifmt) | |
Writes Excel FORMAT record for non "built-in" numerical formats. | |
_storeDatemode () | |
Write DATEMODE record to indicate the date system in use (1904 or 1900). | |
_storeExterncount ($cxals) | |
Write BIFF record EXTERNCOUNT to indicate the number of external sheet references in the workbook. | |
_storeExternsheet ($sheetname) | |
Writes the Excel BIFF EXTERNSHEET record. | |
_storeNameShort ($index, $type, $rowmin, $rowmax, $colmin, $colmax) | |
Store the NAME record in the short format that is used for storing the print area, repeat rows only and repeat columns only. | |
_storeNameLong ($index, $type, $rowmin, $rowmax, $colmin, $colmax) | |
Store the NAME record in the long format that is used for storing the repeat rows and columns when both are specified. | |
_storeCountry () | |
Stores the COUNTRY record for localization. | |
_storePalette () | |
Stores the PALETTE biff record. | |
_calculateSharedStringsSizes () | |
Calculate Handling of the SST continue blocks is complicated by the need to include an additional continuation byte depending on whether the string is split between blocks or whether it starts at the beginning of the block. | |
_storeSharedStringsTable () | |
Write all of the workbooks strings into an indexed array. | |
Spreadsheet_Excel_Writer_Workbook ($filename) | |
Class constructor. | |
close () | |
Calls finalization methods. | |
sheets () | |
An accessor for the _worksheets[] array Returns an array of the worksheet objects in a workbook It actually calls to worksheets() | |
worksheets () | |
An accessor for the _worksheets[] array. | |
setVersion ($version) | |
Sets the BIFF version. | |
setCountry ($code) | |
Set the country identifier for the workbook. | |
& | addWorksheet ($name= '') |
Add a new worksheet to the Excel workbook. | |
& | addFormat ($properties=array()) |
Add a new format to the Excel workbook. | |
& | addValidator () |
Create new validator. | |
setCustomColor ($index, $red, $green, $blue) | |
Change the RGB components of the elements in the colour palette. | |
_setPaletteXl97 () | |
Sets the colour palette to the Excel 97+ default. | |
_storeWorkbook () | |
Assemble worksheets into a workbook and send the BIFF data to an OLE storage. | |
_storeOLEFile () | |
Store the workbook in an OLE container. | |
_calcSheetOffsets () | |
Calculate offsets for Worksheet BOF records. | |
_storeAllFonts () | |
Store the Excel FONT records. | |
_storeAllNumFormats () | |
Store user defined numerical formats i.e. | |
_storeAllXfs () | |
Write all XF records. | |
_storeAllStyles () | |
Write all STYLE records. | |
_storeExterns () | |
Write the EXTERNCOUNT and EXTERNSHEET records. | |
_storeNames () | |
Write the NAME record to define the print area and the repeat rows and cols. | |
_storeCodepage () | |
Stores the CODEPAGE biff record. | |
_storeWindow1 () | |
Write Excel BIFF WINDOW1 record. | |
_storeBoundsheet ($sheetname, $offset) | |
Writes Excel BIFF BOUNDSHEET record. | |
_storeSupbookInternal () | |
Write Internal SUPBOOK record. | |
_storeExternsheetBiff8 () | |
Writes the Excel BIFF EXTERNSHEET record. | |
_storeStyle () | |
Write Excel BIFF STYLE records. | |
_storeNumFormat ($format, $ifmt) | |
Writes Excel FORMAT record for non "built-in" numerical formats. | |
_storeDatemode () | |
Write DATEMODE record to indicate the date system in use (1904 or 1900). | |
_storeExterncount ($cxals) | |
Write BIFF record EXTERNCOUNT to indicate the number of external sheet references in the workbook. | |
_storeExternsheet ($sheetname) | |
Writes the Excel BIFF EXTERNSHEET record. | |
_storeNameShort ($index, $type, $rowmin, $rowmax, $colmin, $colmax) | |
Store the NAME record in the short format that is used for storing the print area, repeat rows only and repeat columns only. | |
_storeNameLong ($index, $type, $rowmin, $rowmax, $colmin, $colmax) | |
Store the NAME record in the long format that is used for storing the repeat rows and columns when both are specified. | |
_storeCountry () | |
Stores the COUNTRY record for localization. | |
_storePalette () | |
Stores the PALETTE biff record. | |
_calculateSharedStringsSizes () | |
Calculate Handling of the SST continue blocks is complicated by the need to include an additional continuation byte depending on whether the string is split between blocks or whether it starts at the beginning of the block. | |
_storeSharedStringsTable () | |
Write all of the workbooks strings into an indexed array. | |
Public Member Functions inherited from Spreadsheet_Excel_Writer_BIFFwriter | |
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. | |
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. | |
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 | |
$_filename | |
$_parser | |
$_1904 | |
$_activesheet | |
$_firstsheet | |
$_selected | |
$_xf_index | |
$_fileclosed | |
$_biffsize | |
$_sheetname | |
$_tmp_format | |
$_worksheets | |
$_sheetnames | |
$_formats | |
$_palette | |
$_url_format | |
$_codepage | |
$_country_code | |
$_tmp_dir | |
$_string_sizeinfo_size | |
Data Fields inherited from Spreadsheet_Excel_Writer_BIFFwriter | |
$_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 50 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::_calcSheetOffsets | ( | ) |
Calculate offsets for Worksheet BOF records.
private
Definition at line 606 of file Workbook.php.
References Spreadsheet_Excel_Writer_BIFFwriter\$_datasize, and _calculateSharedStringsSizes().
Spreadsheet_Excel_Writer_Workbook::_calcSheetOffsets | ( | ) |
Calculate offsets for Worksheet BOF records.
private
Definition at line 607 of file Workbook.php.
References Spreadsheet_Excel_Writer_BIFFwriter\$_datasize, and _calculateSharedStringsSizes().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_calculateSharedStringsSizes | ( | ) |
Calculate Handling of the SST continue blocks is complicated by the need to include an additional continuation byte depending on whether the string is split between blocks or whether it starts at the beginning of the block.
(There are also additional complications that will arise later when/if Rich Strings are supported).
private
Definition at line 1293 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::_calculateSharedStringsSizes | ( | ) |
Calculate Handling of the SST continue blocks is complicated by the need to include an additional continuation byte depending on whether the string is split between blocks or whether it starts at the beginning of the block.
(There are also additional complications that will arise later when/if Rich Strings are supported).
private
Definition at line 1309 of file Workbook.php.
Referenced by _calcSheetOffsets().
Spreadsheet_Excel_Writer_Workbook::_setPaletteXl97 | ( | ) |
Sets the colour palette to the Excel 97+ default.
private
Definition at line 416 of file Workbook.php.
Referenced by Spreadsheet_Excel_Writer_Workbook().
Spreadsheet_Excel_Writer_Workbook::_setPaletteXl97 | ( | ) |
Sets the colour palette to the Excel 97+ default.
private
Definition at line 421 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::_storeAllFonts | ( | ) |
Store the Excel FONT records.
private
Definition at line 645 of file Workbook.php.
References $_tmp_format, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeAllFonts | ( | ) |
Store the Excel FONT records.
private
Definition at line 647 of file Workbook.php.
References $_tmp_format, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_storeAllNumFormats | ( | ) |
Store user defined numerical formats i.e.
FORMAT records
private
Definition at line 689 of file Workbook.php.
References _storeNumFormat().
Spreadsheet_Excel_Writer_Workbook::_storeAllNumFormats | ( | ) |
Store user defined numerical formats i.e.
FORMAT records
private
Definition at line 693 of file Workbook.php.
References _storeNumFormat().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_storeAllStyles | ( | ) |
Write all STYLE records.
private
Definition at line 764 of file Workbook.php.
References _storeStyle().
Spreadsheet_Excel_Writer_Workbook::_storeAllStyles | ( | ) |
Write all STYLE records.
private
Definition at line 771 of file Workbook.php.
References _storeStyle().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_storeAllXfs | ( | ) |
Write all XF records.
private
Definition at line 737 of file Workbook.php.
References $_tmp_format, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeAllXfs | ( | ) |
Write all XF records.
private
Definition at line 744 of file Workbook.php.
References $_tmp_format, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_storeBoundsheet | ( | $sheetname, | |
$offset | |||
) |
Writes Excel BIFF BOUNDSHEET record.
FIXME: inconsistent with BIFF documentation
string | $sheetname | Worksheet name |
integer | $offset | Location of worksheet BOF private |
Definition at line 921 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeBoundsheet | ( | $sheetname, | |
$offset | |||
) |
Writes Excel BIFF BOUNDSHEET record.
FIXME: inconsistent with BIFF documentation
string | $sheetname | Worksheet name |
integer | $offset | Location of worksheet BOF private |
Definition at line 932 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_storeCodepage | ( | ) |
Stores the CODEPAGE biff record.
private
Definition at line 871 of file Workbook.php.
References $_codepage, $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeCodepage | ( | ) |
Stores the CODEPAGE biff record.
private
Definition at line 882 of file Workbook.php.
References $_codepage, $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_storeCountry | ( | ) |
Stores the COUNTRY record for localization.
private
Definition at line 1247 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeCountry | ( | ) |
Stores the COUNTRY record for localization.
private
Definition at line 1262 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_storeDatemode | ( | ) |
Write DATEMODE record to indicate the date system in use (1904 or 1900).
private
Definition at line 1033 of file Workbook.php.
References $_1904, $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeDatemode | ( | ) |
Write DATEMODE record to indicate the date system in use (1904 or 1900).
private
Definition at line 1048 of file Workbook.php.
References $_1904, $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_storeExterncount | ( | $cxals | ) |
Write BIFF record EXTERNCOUNT to indicate the number of external sheet references in the workbook.
Excel only stores references to external sheets that are used in NAME. The workbook NAME record is required to define the print area and the repeat rows and columns.
A similar method is used in Worksheet.php for a slightly different purpose.
integer | $cxals | Number of external references private |
Definition at line 1059 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeExterncount | ( | $cxals | ) |
Write BIFF record EXTERNCOUNT to indicate the number of external sheet references in the workbook.
Excel only stores references to external sheets that are used in NAME. The workbook NAME record is required to define the print area and the repeat rows and columns.
A similar method is used in Worksheet.php for a slightly different purpose.
integer | $cxals | Number of external references private |
Definition at line 1074 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeExterns().
Spreadsheet_Excel_Writer_Workbook::_storeExterns | ( | ) |
Write the EXTERNCOUNT and EXTERNSHEET records.
These are used as indexes for the NAME records.
private
Definition at line 775 of file Workbook.php.
References _storeExterncount(), and _storeExternsheet().
Spreadsheet_Excel_Writer_Workbook::_storeExterns | ( | ) |
Write the EXTERNCOUNT and EXTERNSHEET records.
These are used as indexes for the NAME records.
private
Definition at line 782 of file Workbook.php.
References _storeExterncount(), and _storeExternsheet().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_storeExternsheet | ( | $sheetname | ) |
Writes the Excel BIFF EXTERNSHEET record.
These references are used by formulas. NAME record is required to define the print area and the repeat rows and columns.
A similar method is used in Worksheet.php for a slightly different purpose.
string | $sheetname | Worksheet name private |
Definition at line 1080 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeExternsheet | ( | $sheetname | ) |
Writes the Excel BIFF EXTERNSHEET record.
These references are used by formulas. NAME record is required to define the print area and the repeat rows and columns.
A similar method is used in Worksheet.php for a slightly different purpose.
string | $sheetname | Worksheet name private |
Definition at line 1095 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeExterns().
Spreadsheet_Excel_Writer_Workbook::_storeExternsheetBiff8 | ( | ) |
Writes the Excel BIFF EXTERNSHEET record.
These references are used by formulas.
string | $sheetname | Worksheet name private |
Definition at line 964 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeExternsheetBiff8 | ( | ) |
Writes the Excel BIFF EXTERNSHEET record.
These references are used by formulas.
string | $sheetname | Worksheet name private |
Definition at line 977 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeNameLong | ( | $index, | |
$type, | |||
$rowmin, | |||
$rowmax, | |||
$colmin, | |||
$colmax | |||
) |
Store the NAME record in the long format that is used for storing the repeat rows and columns when both are specified.
This shares a lot of code with _storeNameShort() but we use a separate method to keep the code clean. Code abstraction for reuse can be carried too far, and I should know. ;-)
integer | $index | Sheet index |
integer | $type | Built-in name type |
integer | $rowmin | Start row |
integer | $rowmax | End row |
integer | $colmin | Start colum |
integer | $colmax | End column private |
Definition at line 1172 of file Workbook.php.
References $data, $type, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeNameLong | ( | $index, | |
$type, | |||
$rowmin, | |||
$rowmax, | |||
$colmin, | |||
$colmax | |||
) |
Store the NAME record in the long format that is used for storing the repeat rows and columns when both are specified.
This shares a lot of code with _storeNameShort() but we use a separate method to keep the code clean. Code abstraction for reuse can be carried too far, and I should know. ;-)
integer | $index | Sheet index |
integer | $type | Built-in name type |
integer | $rowmin | Start row |
integer | $rowmax | End row |
integer | $colmin | Start colum |
integer | $colmax | End column private |
Definition at line 1187 of file Workbook.php.
References $data, $type, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeNames().
Spreadsheet_Excel_Writer_Workbook::_storeNames | ( | ) |
Write the NAME record to define the print area and the repeat rows and cols.
private
Definition at line 791 of file Workbook.php.
References _storeNameLong(), and _storeNameShort().
Spreadsheet_Excel_Writer_Workbook::_storeNames | ( | ) |
Write the NAME record to define the print area and the repeat rows and cols.
private
Definition at line 798 of file Workbook.php.
References _storeNameLong(), and _storeNameShort().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_storeNameShort | ( | $index, | |
$type, | |||
$rowmin, | |||
$rowmax, | |||
$colmin, | |||
$colmax | |||
) |
Store the NAME record in the short format that is used for storing the print area, repeat rows only and repeat columns only.
integer | $index | Sheet index |
integer | $type | Built-in name type |
integer | $rowmin | Start row |
integer | $rowmax | End row |
integer | $colmin | Start colum |
integer | $colmax | End column private |
Definition at line 1106 of file Workbook.php.
References $data, $type, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeNameShort | ( | $index, | |
$type, | |||
$rowmin, | |||
$rowmax, | |||
$colmin, | |||
$colmax | |||
) |
Store the NAME record in the short format that is used for storing the print area, repeat rows only and repeat columns only.
integer | $index | Sheet index |
integer | $type | Built-in name type |
integer | $rowmin | Start row |
integer | $rowmax | End row |
integer | $colmin | Start colum |
integer | $colmax | End column private |
Definition at line 1121 of file Workbook.php.
References $data, $type, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeNames().
Spreadsheet_Excel_Writer_Workbook::_storeNumFormat | ( | $format, | |
$ifmt | |||
) |
Writes Excel FORMAT record for non "built-in" numerical formats.
string | $format | Custom format string |
integer | $ifmt | Format index code private |
Definition at line 1006 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeNumFormat | ( | $format, | |
$ifmt | |||
) |
Writes Excel FORMAT record for non "built-in" numerical formats.
string | $format | Custom format string |
integer | $ifmt | Format index code private |
Definition at line 1019 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeAllNumFormats().
Spreadsheet_Excel_Writer_Workbook::_storeOLEFile | ( | ) |
Store the workbook in an OLE container.
private
Definition at line 566 of file Workbook.php.
References $res, OLE\Asc2Ucs(), PEAR\isError(), and PEAR\raiseError().
Spreadsheet_Excel_Writer_Workbook::_storeOLEFile | ( | ) |
Store the workbook in an OLE container.
private
Definition at line 573 of file Workbook.php.
References $res, OLE\Asc2Ucs(), PEAR\isError(), and PEAR\raiseError().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_storePalette | ( | ) |
Stores the PALETTE biff record.
private
Definition at line 1263 of file Workbook.php.
References $_palette, $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storePalette | ( | ) |
Stores the PALETTE biff record.
private
Definition at line 1278 of file Workbook.php.
References $_palette, $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_storeSharedStringsTable | ( | ) |
Write all of the workbooks strings into an indexed array.
See the comments in _calculate_shared_string_sizes() for more information.
The Excel documentation says that the SST record should be followed by an EXTSST record. The EXTSST record is a hash table that is used to optimise access to SST. However, despite the documentation it doesn't seem to be required so we will ignore it.
private
Definition at line 1431 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_storeSharedStringsTable | ( | ) |
Write all of the workbooks strings into an indexed array.
See the comments in _calculate_shared_string_sizes() for more information.
The Excel documentation says that the SST record should be followed by an EXTSST record. The EXTSST record is a hash table that is used to optimise access to SST. However, despite the documentation it doesn't seem to be required so we will ignore it.
private
Definition at line 1439 of file Workbook.php.
References $data, $total, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeStyle | ( | ) |
Write Excel BIFF STYLE records.
private
Definition at line 984 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeStyle | ( | ) |
Write Excel BIFF STYLE records.
private
Definition at line 997 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeAllStyles().
Spreadsheet_Excel_Writer_Workbook::_storeSupbookInternal | ( | ) |
Write Internal SUPBOOK record.
private
Definition at line 947 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeSupbookInternal | ( | ) |
Write Internal SUPBOOK record.
private
Definition at line 960 of file Workbook.php.
References $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeWindow1 | ( | ) |
Write Excel BIFF WINDOW1 record.
private
Definition at line 888 of file Workbook.php.
References $_activesheet, $_firstsheet, $_selected, $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Spreadsheet_Excel_Writer_Workbook::_storeWindow1 | ( | ) |
Write Excel BIFF WINDOW1 record.
private
Definition at line 899 of file Workbook.php.
References $_activesheet, $_firstsheet, $_selected, $data, and Spreadsheet_Excel_Writer_BIFFwriter\_append().
Referenced by _storeWorkbook().
Spreadsheet_Excel_Writer_Workbook::_storeWorkbook | ( | ) |
Assemble worksheets into a workbook and send the BIFF data to an OLE storage.
private
Definition at line 485 of file Workbook.php.
References $res, _calcSheetOffsets(), _storeAllFonts(), _storeAllNumFormats(), _storeAllStyles(), _storeAllXfs(), Spreadsheet_Excel_Writer_BIFFwriter\_storeBof(), _storeBoundsheet(), _storeCodepage(), _storeCountry(), _storeDatemode(), Spreadsheet_Excel_Writer_BIFFwriter\_storeEof(), _storeExterns(), _storeNames(), _storeOLEFile(), _storePalette(), _storeSharedStringsTable(), _storeWindow1(), PEAR\isError(), and PEAR\raiseError().
Referenced by close().
Spreadsheet_Excel_Writer_Workbook::_storeWorkbook | ( | ) |
Assemble worksheets into a workbook and send the BIFF data to an OLE storage.
private
Definition at line 490 of file Workbook.php.
References $res, _calcSheetOffsets(), _storeAllFonts(), _storeAllNumFormats(), _storeAllStyles(), _storeAllXfs(), Spreadsheet_Excel_Writer_BIFFwriter\_storeBof(), _storeBoundsheet(), _storeCodepage(), _storeCountry(), _storeDatemode(), Spreadsheet_Excel_Writer_BIFFwriter\_storeEof(), _storeExterns(), _storeNames(), _storeOLEFile(), _storePalette(), _storeSharedStringsTable(), _storeWindow1(), PEAR\isError(), and PEAR\raiseError().
& Spreadsheet_Excel_Writer_Workbook::addFormat | ( | $properties = array() | ) |
Add a new format to the Excel workbook.
Also, pass any properties to the Format constructor.
public
array | $properties | array with properties for initializing the format. |
Definition at line 351 of file Workbook.php.
Referenced by Spreadsheet_Excel_Writer_Workbook().
& Spreadsheet_Excel_Writer_Workbook::addFormat | ( | $properties = array() | ) |
Add a new format to the Excel workbook.
Also, pass any properties to the Format constructor.
public
array | $properties | array with properties for initializing the format. |
Definition at line 356 of file Workbook.php.
& Spreadsheet_Excel_Writer_Workbook::addValidator | ( | ) |
Create new validator.
public
Definition at line 365 of file Workbook.php.
References $valid.
& Spreadsheet_Excel_Writer_Workbook::addValidator | ( | ) |
Create new validator.
public
Definition at line 370 of file Workbook.php.
References $valid.
& Spreadsheet_Excel_Writer_Workbook::addWorksheet | ( | $name = '' | ) |
Add a new worksheet to the Excel workbook.
If no name is given the name of the worksheet will be Sheeti$i, with $i in [1..].
public
string | $name | the optional name of the worksheet |
Reimplemented in ilExcelWriterWrapper.
Definition at line 307 of file Workbook.php.
References $_sheetname, $name, and PEAR\raiseError().
& Spreadsheet_Excel_Writer_Workbook::addWorksheet | ( | $name = '' | ) |
Add a new worksheet to the Excel workbook.
If no name is given the name of the worksheet will be Sheeti$i, with $i in [1..].
public
string | $name | the optional name of the worksheet |
Reimplemented in ilExcelWriterWrapper.
Definition at line 310 of file Workbook.php.
References $_sheetname, $name, and PEAR\raiseError().
Spreadsheet_Excel_Writer_Workbook::close | ( | ) |
Calls finalization methods.
This method should always be the last one to be called on every workbook
public
Definition at line 213 of file Workbook.php.
References $res, _storeWorkbook(), PEAR\isError(), and PEAR\raiseError().
Spreadsheet_Excel_Writer_Workbook::close | ( | ) |
Calls finalization methods.
This method should always be the last one to be called on every workbook
public
Definition at line 213 of file Workbook.php.
References $res, _storeWorkbook(), PEAR\isError(), and PEAR\raiseError().
Spreadsheet_Excel_Writer_Workbook::setCountry | ( | $code | ) |
Set the country identifier for the workbook.
public
integer | $code | Is the international calling country code for the chosen country. |
Definition at line 292 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::setCountry | ( | $code | ) |
Set the country identifier for the workbook.
public
integer | $code | Is the international calling country code for the chosen country. |
Definition at line 295 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::setCustomColor | ( | $index, | |
$red, | |||
$green, | |||
$blue | |||
) |
Change the RGB components of the elements in the colour palette.
public
integer | $index | colour index |
integer | $red | red RGB value [0-255] |
integer | $green | green RGB value [0-255] |
integer | $blue | blue RGB value [0-255] |
Definition at line 383 of file Workbook.php.
References PEAR\raiseError().
Spreadsheet_Excel_Writer_Workbook::setCustomColor | ( | $index, | |
$red, | |||
$green, | |||
$blue | |||
) |
Change the RGB components of the elements in the colour palette.
public
integer | $index | colour index |
integer | $red | red RGB value [0-255] |
integer | $green | green RGB value [0-255] |
integer | $blue | blue RGB value [0-255] |
Definition at line 388 of file Workbook.php.
References PEAR\raiseError().
Spreadsheet_Excel_Writer_Workbook::setTempDir | ( | $dir | ) |
Sets the temp dir used for storing the OLE file.
public
string | $dir | The dir to be used as temp dir |
Reimplemented from Spreadsheet_Excel_Writer_BIFFwriter.
Definition at line 558 of file Workbook.php.
References $dir.
Spreadsheet_Excel_Writer_Workbook::setVersion | ( | $version | ) |
Sets the BIFF version.
This method exists just to access experimental functionality from BIFF8. It will be deprecated ! Only possible value is 8 (Excel 97/2000). For any other value it fails silently.
public
integer | $version | The BIFF version |
Definition at line 262 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::setVersion | ( | $version | ) |
Sets the BIFF version.
This method exists just to access experimental functionality from BIFF8. It will be deprecated ! Only possible value is 8 (Excel 97/2000). For any other value it fails silently.
public
integer | $version | The BIFF version |
Definition at line 262 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::sheets | ( | ) |
An accessor for the _worksheets[] array Returns an array of the worksheet objects in a workbook It actually calls to worksheets()
public
Definition at line 235 of file Workbook.php.
References worksheets().
Spreadsheet_Excel_Writer_Workbook::sheets | ( | ) |
An accessor for the _worksheets[] array Returns an array of the worksheet objects in a workbook It actually calls to worksheets()
public
Definition at line 235 of file Workbook.php.
References worksheets().
Spreadsheet_Excel_Writer_Workbook::Spreadsheet_Excel_Writer_Workbook | ( | $filename | ) |
Class constructor.
string | filename for storing the workbook. "-" for writing to stdout. public |
Definition at line 174 of file Workbook.php.
References $filename, _setPaletteXl97(), addFormat(), and Spreadsheet_Excel_Writer_BIFFwriter\Spreadsheet_Excel_Writer_BIFFwriter().
Referenced by Spreadsheet_Excel_Writer\Spreadsheet_Excel_Writer().
Spreadsheet_Excel_Writer_Workbook::Spreadsheet_Excel_Writer_Workbook | ( | $filename | ) |
Class constructor.
string | filename for storing the workbook. "-" for writing to stdout. public |
Definition at line 174 of file Workbook.php.
References $filename, _setPaletteXl97(), addFormat(), and Spreadsheet_Excel_Writer_BIFFwriter\Spreadsheet_Excel_Writer_BIFFwriter().
Spreadsheet_Excel_Writer_Workbook::worksheets | ( | ) |
An accessor for the _worksheets[] array.
Returns an array of the worksheet objects in a workbook
public
Definition at line 247 of file Workbook.php.
References $_worksheets.
Spreadsheet_Excel_Writer_Workbook::worksheets | ( | ) |
An accessor for the _worksheets[] array.
Returns an array of the worksheet objects in a workbook
public
Definition at line 247 of file Workbook.php.
References $_worksheets.
Referenced by sheets().
Spreadsheet_Excel_Writer_Workbook::$_1904 |
Definition at line 68 of file Workbook.php.
Referenced by _storeDatemode().
Spreadsheet_Excel_Writer_Workbook::$_activesheet |
Definition at line 74 of file Workbook.php.
Referenced by _storeWindow1().
Spreadsheet_Excel_Writer_Workbook::$_biffsize |
Definition at line 106 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::$_codepage |
Definition at line 154 of file Workbook.php.
Referenced by _storeCodepage().
Spreadsheet_Excel_Writer_Workbook::$_country_code |
Definition at line 160 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::$_fileclosed |
Definition at line 99 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::$_filename |
Definition at line 56 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::$_firstsheet |
Definition at line 80 of file Workbook.php.
Referenced by _storeWindow1().
Spreadsheet_Excel_Writer_Workbook::$_formats |
Definition at line 136 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::$_palette |
Definition at line 142 of file Workbook.php.
Referenced by _storePalette().
Spreadsheet_Excel_Writer_Workbook::$_parser |
Definition at line 62 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::$_selected |
Definition at line 86 of file Workbook.php.
Referenced by _storeWindow1().
Spreadsheet_Excel_Writer_Workbook::$_sheetname |
Definition at line 112 of file Workbook.php.
Referenced by addWorksheet().
Spreadsheet_Excel_Writer_Workbook::$_sheetnames |
Definition at line 130 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::$_string_sizeinfo_size |
Definition at line 166 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::$_tmp_dir |
Definition at line 166 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::$_tmp_format |
Definition at line 118 of file Workbook.php.
Referenced by _storeAllFonts(), and _storeAllXfs().
Spreadsheet_Excel_Writer_Workbook::$_url_format |
Definition at line 148 of file Workbook.php.
Spreadsheet_Excel_Writer_Workbook::$_worksheets |
Definition at line 124 of file Workbook.php.
Referenced by worksheets().
Spreadsheet_Excel_Writer_Workbook::$_xf_index |
Definition at line 92 of file Workbook.php.