getScriptFilename() getScriptFilename() : string Return the filename currently being executed. Returns string —
getSamples() getSamples() : string[] Returns an array of all known samples. Returns string[] — [$name => $path]
write() write(\PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet, string $filename, string[] $writers = ['Xlsx', 'Xls']) : void Write documents. Parameters \PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet string $filename string[] $writers
getFilename() getFilename(string $filename, string $extension = 'xlsx') : string Returns the filename that should be used for sample output. Parameters string $filename string $extension Returns string —
getTemporaryFilename() getTemporaryFilename(string $extension = 'xlsx') : string Return a random temporary file name. Parameters string $extension Returns string —
logWrite() logWrite(\PhpOffice\PhpSpreadsheet\Writer\IWriter $writer, string $path, float $callStartTime) : void Log a line about the write operation. Parameters \PhpOffice\PhpSpreadsheet\Writer\IWriter $writer string $path float $callStartTime
logRead() logRead(string $format, string $path, float $callStartTime) : void Log a line about the read operation. Parameters string $format string $path float $callStartTime
getTemporaryFolder() getTemporaryFolder() : string Returns the temporary directory and make sure it exists. Returns string —