category |
PHPExcel |
package |
PHPExcel_Writer_CSV |
copyright |
Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) |
Methods
Create a new PHPExcel_Writer_CSV
__construct(\PHPExcel $phpExcel)
Get delimiter
getDelimiter() : string
Get disk caching directory
getDiskCachingDirectory() : string
Inherited
inherited_from |
\PHPExcel_Writer_Abstract::getDiskCachingDirectory() |
Returns
string
Get enclosure
getEnclosure() : string
Get whether the file should be saved with full Excel Compatibility
getExcelCompatibility() : boolean
Write charts in workbook?
If this is true, then the Writer will write definitions for any charts that exist in the PHPExcel object.
getIncludeCharts() : boolean
Inherited
If false (the default) it will ignore any charts defined in the PHPExcel object.
inherited_from |
\PHPExcel_Writer_Abstract::getIncludeCharts() |
Returns
boolean
Get line ending
getLineEnding() : string
Get sheet index
getSheetIndex() : int
Get whether BOM should be used
getUseBOM() : boolean
Get use disk caching where possible?
getUseDiskCaching() : boolean
Inherited
inherited_from |
\PHPExcel_Writer_Abstract::getUseDiskCaching() |
Returns
boolean
Save PHPExcel to file
save(string $pFilename)
@param string $pFilename Name of the file to save
Parameters
$pFilename
string
Exceptions
Set delimiter
setDelimiter(string $pValue) : \PHPExcel_Writer_CSV
Parameters
$pValue
string
Delimiter, defaults to ,
Returns
Set enclosure
setEnclosure(string $pValue) : \PHPExcel_Writer_CSV
Parameters
$pValue
string
Enclosure, defaults to "
Returns
Set whether the file should be saved with full Excel Compatibility
setExcelCompatibility(boolean $pValue) : \PHPExcel_Writer_CSV
Parameters
$pValue
boolean
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
Returns
Set write charts in workbook
Set to true, to advise the Writer to include any charts that exist in the PHPExcel object.
setIncludeCharts(boolean $pValue) : \PHPExcel_Writer_IWriter
Inherited
Set to false (the default) to ignore charts.
inherited_from |
\PHPExcel_Writer_Abstract::setIncludeCharts() |
Parameters
$pValue
boolean
Returns
Set line ending
setLineEnding(string $pValue) : \PHPExcel_Writer_CSV
Parameters
$pValue
string
Line ending, defaults to OS line ending (PHP_EOL)
Returns
Set whether BOM should be used
setUseBOM(boolean $pValue) : \PHPExcel_Writer_CSV
Parameters
$pValue
boolean
Use UTF-8 byte-order mark? Defaults to false
Returns
Set use disk caching where possible?
setUseDiskCaching(boolean $pValue, string $pDirectory) : \PHPExcel_Writer_Excel2007
Inherited
inherited_from |
\PHPExcel_Writer_Abstract::setUseDiskCaching() |
Parameters
$pValue
boolean
$pDirectory
string
Disk caching directory
Exceptions
Returns
Write line to CSV file
_writeLine(mixed $pFileHandle, array $pValues)
Parameters
$pFileHandle
mixed
PHP filehandle
$pValues
array
Array containing values in a row
Exceptions
Properties
$_diskCachingDirectory : string
Inherited
inherited_from |
\PHPExcel_Writer_Abstract::$$_diskCachingDirectory |
$_includeCharts : boolean
Inherited
inherited_from |
\PHPExcel_Writer_Abstract::$$_includeCharts |
$_useDiskCaching : boolean
Inherited
inherited_from |
\PHPExcel_Writer_Abstract::$$_useDiskCaching |
$_excelCompatibility : boolean