From 7e0b0798997b197d57d09ef5e690afdb1e6a2712 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 29 Dec 2005 01:16:29 +0000 Subject: Changed module init() method signature. --- framework/Data/TMemCache.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'framework/Data/TMemCache.php') diff --git a/framework/Data/TMemCache.php b/framework/Data/TMemCache.php index a34cd9a6..08f5e099 100644 --- a/framework/Data/TMemCache.php +++ b/framework/Data/TMemCache.php @@ -44,7 +44,7 @@ * Some usage examples of TMemCache are as follows, * * $cache=new TMemCache; // TMemCache may also be loaded as a Prado application module - * $cache->init(); + * $cache->init(null); * $cache->add('object',$object); * $object2=$cache->get('object'); * @@ -105,10 +105,8 @@ class TMemCache extends TModule implements ICache * @param TXmlElement configuration for this module, can be null * @throws TConfigurationException if memcache extension is not installed or memcache sever connection fails */ - public function init($config=null) + public function init($config) { - parent::init($config); - if(!extension_loaded('memcache')) throw new TConfigurationException('memcache_extension_required'); $this->_cache=new Memcache; -- cgit v1.2.3