ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
getIncludeCharts () | |
Write charts in workbook? If this is true, then the Writer will write definitions for any charts that exist in the PhpSpreadsheet object. More... | |
setIncludeCharts ($pValue) | |
Set write charts in workbook Set to true, to advise the Writer to include any charts that exist in the PhpSpreadsheet 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) | |
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, $pDirectory=null) | |
Set use disk caching where possible? More... | |
getDiskCachingDirectory () | |
Get disk caching directory. More... | |
openFileHandle ($filename) | |
Open file handle. More... | |
Public Member Functions inherited from PhpOffice\PhpSpreadsheet\Writer\IWriter | |
__construct (Spreadsheet $spreadsheet) | |
IWriter constructor. More... | |
save ($pFilename) | |
Save PhpSpreadsheet to file. More... | |
Protected Member Functions | |
maybeCloseFileHandle () | |
Close file handle only if we opened it ourselves. More... | |
Protected Attributes | |
$includeCharts = false | |
$preCalculateFormulas = true | |
$fileHandle | |
Private Attributes | |
$useDiskCaching = false | |
$diskCachingDirectory = './' | |
$shouldCloseFile | |
Definition at line 5 of file BaseWriter.php.
PhpOffice\PhpSpreadsheet\Writer\BaseWriter::getDiskCachingDirectory | ( | ) |
Get disk caching directory.
Implements PhpOffice\PhpSpreadsheet\Writer\IWriter.
Definition at line 92 of file BaseWriter.php.
References PhpOffice\PhpSpreadsheet\Writer\BaseWriter\$diskCachingDirectory.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Styles\write(), PhpOffice\PhpSpreadsheet\Writer\Ods\MetaInf\write(), PhpOffice\PhpSpreadsheet\Writer\Ods\Settings\write(), PhpOffice\PhpSpreadsheet\Writer\Ods\Meta\write(), PhpOffice\PhpSpreadsheet\Writer\Ods\Content\write(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Chart\writeChart(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Comments\writeComments(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\ContentTypes\writeContentTypes(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\DocProps\writeDocPropsApp(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\DocProps\writeDocPropsCore(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\DocProps\writeDocPropsCustom(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels\writeHeaderFooterDrawingRelationships(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels\writeRelationships(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\RelsRibbon\writeRibbonRelationships(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\StringTable\writeStringTable(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeStyles(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Theme\writeTheme(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels\writeUnparsedRelationship(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\RelsVBA\writeVBARelationships(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Comments\writeVMLComments(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Drawing\writeVMLHeaderFooterImages(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Workbook\writeWorkbook(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels\writeWorkbookRelationships(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeWorksheet(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels\writeWorksheetRelationships().
PhpOffice\PhpSpreadsheet\Writer\BaseWriter::getIncludeCharts | ( | ) |
Write charts in workbook? If this is true, then the Writer will write definitions for any charts that exist in the PhpSpreadsheet object.
If false (the default) it will ignore any charts defined in the PhpSpreadsheet object.
Implements PhpOffice\PhpSpreadsheet\Writer\IWriter.
Definition at line 48 of file BaseWriter.php.
References PhpOffice\PhpSpreadsheet\Writer\BaseWriter\$includeCharts.
PhpOffice\PhpSpreadsheet\Writer\BaseWriter::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.
This is faster for saving in PhpSpreadsheet, but slower when opening the resulting file in MS Excel, because Excel has to recalculate the formulae itself.
Implements PhpOffice\PhpSpreadsheet\Writer\IWriter.
Definition at line 60 of file BaseWriter.php.
References PhpOffice\PhpSpreadsheet\Writer\BaseWriter\$preCalculateFormulas.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeCellFormula(), and PhpOffice\PhpSpreadsheet\Writer\Ods\Content\writeRows().
PhpOffice\PhpSpreadsheet\Writer\BaseWriter::getUseDiskCaching | ( | ) |
Get use disk caching where possible?
Implements PhpOffice\PhpSpreadsheet\Writer\IWriter.
Definition at line 72 of file BaseWriter.php.
References PhpOffice\PhpSpreadsheet\Writer\BaseWriter\$useDiskCaching.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Styles\write(), PhpOffice\PhpSpreadsheet\Writer\Ods\MetaInf\write(), PhpOffice\PhpSpreadsheet\Writer\Ods\Settings\write(), PhpOffice\PhpSpreadsheet\Writer\Ods\Meta\write(), PhpOffice\PhpSpreadsheet\Writer\Ods\Content\write(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Chart\writeChart(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Comments\writeComments(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\ContentTypes\writeContentTypes(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\DocProps\writeDocPropsApp(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\DocProps\writeDocPropsCore(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\DocProps\writeDocPropsCustom(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels\writeHeaderFooterDrawingRelationships(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels\writeRelationships(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\RelsRibbon\writeRibbonRelationships(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\StringTable\writeStringTable(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeStyles(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Theme\writeTheme(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels\writeUnparsedRelationship(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\RelsVBA\writeVBARelationships(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Comments\writeVMLComments(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Drawing\writeVMLHeaderFooterImages(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Workbook\writeWorkbook(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels\writeWorkbookRelationships(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeWorksheet(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels\writeWorksheetRelationships().
|
protected |
Close file handle only if we opened it ourselves.
Definition at line 123 of file BaseWriter.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Pdf\restoreStateAfterSave(), PhpOffice\PhpSpreadsheet\Writer\Csv\save(), PhpOffice\PhpSpreadsheet\Writer\Ods\save(), PhpOffice\PhpSpreadsheet\Writer\Xls\save(), PhpOffice\PhpSpreadsheet\Writer\Html\save(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\save().
PhpOffice\PhpSpreadsheet\Writer\BaseWriter::openFileHandle | ( | $filename | ) |
Open file handle.
resource | string | $filename |
Definition at line 102 of file BaseWriter.php.
References PhpOffice\PhpSpreadsheet\Writer\BaseWriter\$fileHandle, and $filename.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Pdf\prepareForSave(), PhpOffice\PhpSpreadsheet\Writer\Csv\save(), PhpOffice\PhpSpreadsheet\Writer\Ods\save(), PhpOffice\PhpSpreadsheet\Writer\Xls\save(), PhpOffice\PhpSpreadsheet\Writer\Html\save(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\save().
PhpOffice\PhpSpreadsheet\Writer\BaseWriter::setIncludeCharts | ( | $pValue | ) |
Set write charts in workbook Set to true, to advise the Writer to include any charts that exist in the PhpSpreadsheet object.
Set to false (the default) to ignore charts.
bool | $pValue |
Implements PhpOffice\PhpSpreadsheet\Writer\IWriter.
Definition at line 53 of file BaseWriter.php.
PhpOffice\PhpSpreadsheet\Writer\BaseWriter::setPreCalculateFormulas | ( | $pValue | ) |
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.
bool | $pValue | Pre-Calculate Formulas? |
Implements PhpOffice\PhpSpreadsheet\Writer\IWriter.
Definition at line 65 of file BaseWriter.php.
PhpOffice\PhpSpreadsheet\Writer\BaseWriter::setUseDiskCaching | ( | $pValue, | |
$pDirectory = null |
|||
) |
Set use disk caching where possible?
bool | $pValue | |
string | $pDirectory | Disk caching directory |
Implements PhpOffice\PhpSpreadsheet\Writer\IWriter.
Definition at line 77 of file BaseWriter.php.
|
private |
Definition at line 36 of file BaseWriter.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\BaseWriter\getDiskCachingDirectory().
|
protected |
Definition at line 41 of file BaseWriter.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\BaseWriter\openFileHandle(), PhpOffice\PhpSpreadsheet\Writer\Pdf\prepareForSave(), PhpOffice\PhpSpreadsheet\Writer\Pdf\Dompdf\save(), PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf\save(), and PhpOffice\PhpSpreadsheet\Writer\Pdf\Tcpdf\save().
|
protected |
Definition at line 13 of file BaseWriter.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\BaseWriter\getIncludeCharts(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\save(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\ContentTypes\writeContentTypes(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeDrawings(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels\writeUnparsedRelationship(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeWorksheet(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Rels\writeWorksheetRelationships().
|
protected |
Definition at line 22 of file BaseWriter.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\BaseWriter\getPreCalculateFormulas().
|
private |
Definition at line 46 of file BaseWriter.php.
|
private |
Definition at line 29 of file BaseWriter.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\BaseWriter\getUseDiskCaching().