2016-08-31 16:15:54 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require __DIR__ . '/Header.php';
|
|
|
|
|
2016-08-31 17:18:12 +00:00
|
|
|
$cacheMethod = \PhpOffice\PhpSpreadsheet\CachedObjectStorageFactory::CACHE_TO_SQLITE;
|
|
|
|
if (\PhpOffice\PhpSpreadsheet\Settings::setCacheStorageMethod($cacheMethod)) {
|
2016-08-31 16:15:54 +00:00
|
|
|
$helper->log('Enable Cell Caching using ' . $cacheMethod . ' method');
|
|
|
|
} else {
|
|
|
|
$helper->log('ERROR: Unable to set Cell Caching using ' . $cacheMethod . ' method, reverting to memory');
|
|
|
|
}
|
|
|
|
|
|
|
|
$spreadsheet = require __DIR__ . '/templates/largeSpreadsheet.php';
|
|
|
|
|
|
|
|
// Save
|
|
|
|
$helper->write($spreadsheet, __FILE__);
|