![]() |
Framework
3.9
|
Generate a binary format Microsoft Excel file for download. More...
Inheritance diagram for ExcelFile:
Collaboration diagram for ExcelFile:Public Member Functions | |
| ExcelFile ($filename) | |
| Create a new ExcelFile object. More... | |
| _xlsBOF () | |
| _xlsEOF () | |
| writeNumber ($row, $col, $value) | |
| Write a number to the cell at the specified row and column. More... | |
| writeText ($row, $col, $value, $wrap=false) | |
| Write text to the cell at the specified row and column. More... | |
| writeHeading ($row, $col, $value) | |
| Write text with column heading styles. More... | |
| writeSubheading ($row, $col, $value) | |
| Write text with column sub-heading styles. More... | |
| writeFooter ($row, $col, $value) | |
| Write text with column footer styles. More... | |
| writeFooterNumber ($row, $col, $value) | |
| Write number with column footer styles. More... | |
| writePercentage ($row, $col, $value) | |
| Write a number to the cell at the specified row and column and format as a percentage. More... | |
| writeCurrency ($row, $col, $value) | |
| Write a number to the cell at the specified row and column with currency formatting. More... | |
| setWorksheetTitle ($title) | |
| Set the title of the currently active worksheet. More... | |
| addWorksheet ($title) | |
| Adds a new worksheet to the Excel file. More... | |
| abort ($error) | |
| Abort processing, output the specified error string. More... | |
| close () | |
| Prevent further output to the spreadsheet. More... | |
| send () | |
| Transmit the spreadsheet to the client. More... | |
Public Attributes | |
| $filename | |
| $open | |
| $content | |
Generate a binary format Microsoft Excel file for download.
The default ExcelFile writer is an extremely limited implementation that outputs BIFF8 format (Excel 97/2000). It is designed to be compact and provide Excel output without incurring any external dependencies.
| ExcelFile::_xlsBOF | ( | ) |
| ExcelFile::_xlsEOF | ( | ) |
| ExcelFile::abort | ( | $error | ) |
Abort processing, output the specified error string.
| string | $error |
Implements IExcelFile.
Definition at line 268 of file excel.inc.
| ExcelFile::addWorksheet | ( | $title | ) |
Adds a new worksheet to the Excel file.
| string | $title | the title of the new worksheet |
Implements IExcelFile.
| ExcelFile::close | ( | ) |
Prevent further output to the spreadsheet.
Implements IExcelFile.
Definition at line 274 of file excel.inc.
| ExcelFile::ExcelFile | ( | $filename | ) |
| ExcelFile::send | ( | ) |
Transmit the spreadsheet to the client.
Implements IExcelFile.
Definition at line 282 of file excel.inc.
| ExcelFile::setWorksheetTitle | ( | $title | ) |
Set the title of the currently active worksheet.
| string | $title | the title text. |
Implements IExcelFile.
| ExcelFile::writeCurrency | ( | $row, | |
| $col, | |||
| $value | |||
| ) |
Write a number to the cell at the specified row and column with currency formatting.
| integer | $row | |
| integer | $col | |
| number | $value |
Implements IExcelFile.
Definition at line 253 of file excel.inc.
| ExcelFile::writeFooter | ( | $row, | |
| $col, | |||
| $value | |||
| ) |
Write text with column footer styles.
| integer | $row | |
| integer | $col | |
| string | $value |
Implements IExcelFile.
Definition at line 238 of file excel.inc.
| ExcelFile::writeFooterNumber | ( | $row, | |
| $col, | |||
| $value | |||
| ) |
Write number with column footer styles.
| integer | $row | |
| integer | $col | |
| string | $value |
Implements IExcelFile.
| ExcelFile::writeHeading | ( | $row, | |
| $col, | |||
| $value | |||
| ) |
Write text with column heading styles.
| integer | $row | |
| integer | $col | |
| string | $value |
Implements IExcelFile.
| ExcelFile::writeNumber | ( | $row, | |
| $col, | |||
| $value | |||
| ) |
Write a number to the cell at the specified row and column.
| integer | $row | |
| integer | $col | |
| number | $value |
Implements IExcelFile.
| ExcelFile::writePercentage | ( | $row, | |
| $col, | |||
| $value | |||
| ) |
Write a number to the cell at the specified row and column and format as a percentage.
| integer | $row | |
| integer | $col | |
| number | $value |
Implements IExcelFile.
| ExcelFile::writeSubheading | ( | $row, | |
| $col, | |||
| $value | |||
| ) |
Write text with column sub-heading styles.
| integer | $row | |
| integer | $col | |
| string | $value |
Implements IExcelFile.
| ExcelFile::writeText | ( | $row, | |
| $col, | |||
| $value, | |||
$wrap = false |
|||
| ) |
Write text to the cell at the specified row and column.
| integer | $row | the cell row number |
| integer | $col | the cell column number |
| string | $value | the string to insert |
| boolean | $wrap | whether to allow text wrapping |
Implements IExcelFile.