55 $this->includeCharts = (bool) $pValue;
67 $this->preCalculateFormulas = (bool) $pValue;
79 $this->useDiskCaching = $pValue;
81 if ($pDirectory !== null) {
82 if (is_dir($pDirectory)) {
83 $this->diskCachingDirectory = $pDirectory;
85 throw new Exception(
"Directory does not exist: $pDirectory");
106 $this->shouldCloseFile =
false;
117 $this->shouldCloseFile =
true;
125 if ($this->shouldCloseFile) {
126 if (!fclose($this->fileHandle)) {
127 throw new Exception(
'Could not close file after writing.');
setPreCalculateFormulas($pValue)
Set Pre-Calculate Formulas Set to true (the default) to advise the Writer to calculate all formulae o...
setIncludeCharts($pValue)
Set write charts in workbook Set to true, to advise the Writer to include any charts that exist in th...
getDiskCachingDirectory()
Get disk caching directory.
getPreCalculateFormulas()
Get Pre-Calculate Formulas flag If this is true (the default), then the writer will recalculate all f...
setUseDiskCaching($pValue, $pDirectory=null)
Set use disk caching where possible?
getIncludeCharts()
Write charts in workbook? If this is true, then the Writer will write definitions for any charts that...
getUseDiskCaching()
Get use disk caching where possible?
openFileHandle($filename)
Open file handle.
maybeCloseFileHandle()
Close file handle only if we opened it ourselves.