From 11c87c19adeb690de47fb40383737c9d02b0439e Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Sat, 3 Dec 2011 00:32:01 +0000 Subject: [PATCH] Feature - initial version of SQLite cell caching git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83558 2327b42d-5241-43d6-9e2a-de5ac946f064 --- Classes/PHPExcel/CachedObjectStorage/SQLite3.php | 3 --- Classes/PHPExcel/IOFactory.php | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Classes/PHPExcel/CachedObjectStorage/SQLite3.php b/Classes/PHPExcel/CachedObjectStorage/SQLite3.php index 0a49520..cfaa8c2 100644 --- a/Classes/PHPExcel/CachedObjectStorage/SQLite3.php +++ b/Classes/PHPExcel/CachedObjectStorage/SQLite3.php @@ -199,7 +199,6 @@ class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_ if (is_null($this->_DBHandle)) { $this->_TableName = str_replace('.','_',$this->_getUniqueID()); $_DBName = ':memory:'; -// $_DBName = PHPExcel_Shared_File::sys_get_temp_dir().'/PHPExcel.sqlite3'; $this->_DBHandle = new SQLite3($_DBName); $this->_DBHandle->exec('CREATE TABLE kvp_'.$this->_TableName.' (id VARCHAR(12) PRIMARY KEY, value BLOB)'); @@ -209,8 +208,6 @@ class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_ public function __destruct() { if (!is_null($this->_DBHandle)) { -// $this->_DBHandle->exec('DROP TABLE kvp_'.$this->_TableName); - $this->_DBHandle->close(); } $this->_DBHandle = null; diff --git a/Classes/PHPExcel/IOFactory.php b/Classes/PHPExcel/IOFactory.php index 9f2fca4..7f3c23f 100644 --- a/Classes/PHPExcel/IOFactory.php +++ b/Classes/PHPExcel/IOFactory.php @@ -230,6 +230,7 @@ class PHPExcel_IOFactory $reader = self::createReader('Excel2007'); break; case 'xls': + case 'xlsm': $reader = self::createReader('Excel5'); break; case 'ods':