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.');
An exception for terminatinating execution or to throw for unit testing.
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?
getDiskCachingDirectory()
Get disk caching directory.
getIncludeCharts()
Write charts in workbook? If this is true, then the Writer will write definitions for any charts that...
setPreCalculateFormulas($pValue)
Set Pre-Calculate Formulas Set to true (the default) to advise the Writer to calculate all formulae o...
openFileHandle($filename)
Open file handle.
getUseDiskCaching()
Get use disk caching where possible?
setIncludeCharts($pValue)
Set write charts in workbook Set to true, to advise the Writer to include any charts that exist in th...
maybeCloseFileHandle()
Close file handle only if we opened it ourselves.