summaryrefslogtreecommitdiff
path: root/framework/Data/TSqliteCache.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Data/TSqliteCache.php')
-rw-r--r--framework/Data/TSqliteCache.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/Data/TSqliteCache.php b/framework/Data/TSqliteCache.php
index d2955ccd..07cd91e0 100644
--- a/framework/Data/TSqliteCache.php
+++ b/framework/Data/TSqliteCache.php
@@ -47,7 +47,7 @@
* <code>
* $cache=new TSqliteCache; // TSqliteCache may also be loaded as a Prado application module
* $cache->setDbFile($dbFilePath);
- * $cache->init();
+ * $cache->init(null);
* $cache->add('object',$object);
* $object2=$cache->get('object');
* </code>
@@ -113,10 +113,8 @@ class TSqliteCache extends TModule implements ICache
* @throws TConfigurationException if sqlite extension is not installed,
* DbFile is set invalid, or any error happens during creating database or cache table.
*/
- public function init($config=null)
+ public function init($config)
{
- parent::init($config);
-
if(!function_exists('sqlite_open'))
throw new TConfigurationException('sqlitecache_extension_required');
if($this->_file===null)