ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct (PHPExcel $phpExcel) | |
Create a new PHPExcel_Writer_CSV. More... | |
save ($pFilename=null) | |
Save PHPExcel to file. More... | |
getDelimiter () | |
Get delimiter. More... | |
setDelimiter ($pValue=',') | |
Set delimiter. More... | |
getEnclosure () | |
Get enclosure. More... | |
setEnclosure ($pValue='"') | |
Set enclosure. More... | |
getLineEnding () | |
Get line ending. More... | |
setLineEnding ($pValue=PHP_EOL) | |
Set line ending. More... | |
getUseBOM () | |
Get whether BOM should be used. More... | |
setUseBOM ($pValue=false) | |
Set whether BOM should be used. More... | |
getExcelCompatibility () | |
Get whether the file should be saved with full Excel Compatibility. More... | |
setExcelCompatibility ($pValue=false) | |
Set whether the file should be saved with full Excel Compatibility. More... | |
getSheetIndex () | |
Get sheet index. More... | |
setSheetIndex ($pValue=0) | |
Set sheet index. More... | |
Public Member Functions inherited from PHPExcel_Writer_Abstract | |
getIncludeCharts () | |
Write charts in workbook? If this is true, then the Writer will write definitions for any charts that exist in the PHPExcel object. More... | |
setIncludeCharts ($pValue=FALSE) | |
Set write charts in workbook Set to true, to advise the Writer to include any charts that exist in the PHPExcel object. More... | |
getPreCalculateFormulas () | |
Get Pre-Calculate Formulas flag If this is true (the default), then the writer will recalculate all formulae in a workbook when saving, so that the pre-calculated values are immediately available to MS Excel or other office spreadsheet viewer when opening the file If false, then formulae are not calculated on save. More... | |
setPreCalculateFormulas ($pValue=TRUE) | |
Set Pre-Calculate Formulas Set to true (the default) to advise the Writer to calculate all formulae on save Set to false to prevent precalculation of formulae on save. More... | |
getUseDiskCaching () | |
Get use disk caching where possible? More... | |
setUseDiskCaching ($pValue=FALSE, $pDirectory=NULL) | |
Set use disk caching where possible? More... | |
getDiskCachingDirectory () | |
Get disk caching directory. More... | |
Private Member Functions | |
_writeLine ($pFileHandle=null, $pValues=null) | |
Write line to CSV file. More... | |
Private Attributes | |
$_phpExcel | |
$_delimiter = ',' | |
$_enclosure = '"' | |
$_lineEnding = PHP_EOL | |
$_sheetIndex = 0 | |
$_useBOM = false | |
$_excelCompatibility = false | |
Additional Inherited Members | |
Protected Attributes inherited from PHPExcel_Writer_Abstract | |
$_includeCharts = FALSE | |
$_preCalculateFormulas = TRUE | |
$_useDiskCaching = FALSE | |
$_diskCachingDirectory = './' | |
PHPExcel_Writer_CSV::__construct | ( | PHPExcel | $phpExcel | ) |
Create a new PHPExcel_Writer_CSV.
|
private |
Write line to CSV file.
mixed | $pFileHandle | PHP filehandle |
array | $pValues | Array containing values in a row |
PHPExcel_Writer_Exception |
Definition at line 277 of file CSV.php.
References $_delimiter, $_enclosure, and $_lineEnding.
Referenced by save().
PHPExcel_Writer_CSV::getDelimiter | ( | ) |
Get delimiter.
Definition at line 151 of file CSV.php.
References $_delimiter.
Referenced by save().
PHPExcel_Writer_CSV::getEnclosure | ( | ) |
PHPExcel_Writer_CSV::getExcelCompatibility | ( | ) |
Get whether the file should be saved with full Excel Compatibility.
Definition at line 234 of file CSV.php.
References $_excelCompatibility.
PHPExcel_Writer_CSV::getLineEnding | ( | ) |
PHPExcel_Writer_CSV::getSheetIndex | ( | ) |
PHPExcel_Writer_CSV::getUseBOM | ( | ) |
PHPExcel_Writer_CSV::save | ( | $pFilename = null | ) |
Save PHPExcel to file.
string | $pFilename |
PHPExcel_Writer_Exception |
Implements PHPExcel_Writer_IWriter.
Definition at line 101 of file CSV.php.
References $row, _writeLine(), PHPExcel_Calculation\getArrayReturnType(), getDelimiter(), PHPExcel_Calculation\getInstance(), PHPExcel_Calculation\RETURN_ARRAY_AS_VALUE, PHPExcel_Calculation\setArrayReturnType(), setDelimiter(), setEnclosure(), and setLineEnding().
PHPExcel_Writer_CSV::setDelimiter | ( | $pValue = ',' | ) |
Set delimiter.
string | $pValue | Delimiter, defaults to , |
Definition at line 161 of file CSV.php.
Referenced by save().
PHPExcel_Writer_CSV::setEnclosure | ( | $pValue = '"' | ) |
Set enclosure.
string | $pValue | Enclosure, defaults to " |
Definition at line 181 of file CSV.php.
Referenced by save().
PHPExcel_Writer_CSV::setExcelCompatibility | ( | $pValue = false | ) |
Set whether the file should be saved with full Excel Compatibility.
boolean | $pValue | Set the file to be written as a fully Excel compatible csv file Note that this overrides other settings such as useBOM, enclosure and delimiter |
PHPExcel_Writer_CSV::setLineEnding | ( | $pValue = PHP_EOL | ) |
Set line ending.
string | $pValue | Line ending, defaults to OS line ending (PHP_EOL) |
Definition at line 204 of file CSV.php.
Referenced by save().
PHPExcel_Writer_CSV::setSheetIndex | ( | $pValue = 0 | ) |
PHPExcel_Writer_CSV::setUseBOM | ( | $pValue = false | ) |
Set whether BOM should be used.
boolean | $pValue | Use UTF-8 byte-order mark? Defaults to false |
|
private |
Definition at line 49 of file CSV.php.
Referenced by _writeLine(), and getDelimiter().
|
private |
Definition at line 56 of file CSV.php.
Referenced by _writeLine(), and getEnclosure().
|
private |
Definition at line 84 of file CSV.php.
Referenced by getExcelCompatibility().
|
private |
Definition at line 63 of file CSV.php.
Referenced by _writeLine(), and getLineEnding().
|
private |
Definition at line 70 of file CSV.php.
Referenced by getSheetIndex().
|
private |
Definition at line 77 of file CSV.php.
Referenced by getUseBOM().