From aa2edcf52ee7438876d826283274bf7e271fad4a Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 17 Nov 2005 15:28:20 +0000 Subject: Modified how errors are handled. --- framework/Data/TMemCache.php | 4 ++-- framework/Data/TSqliteCache.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/Data') diff --git a/framework/Data/TMemCache.php b/framework/Data/TMemCache.php index 4d952551..9786b467 100644 --- a/framework/Data/TMemCache.php +++ b/framework/Data/TMemCache.php @@ -97,7 +97,7 @@ class TMemCache extends TComponent implements IModule, ICache * This method is required by the IModule interface. It makes sure that * UniquePrefix has been set, creates a Memcache instance and connects * to the memcache server. - * @param IApplication Prado application, can be null + * @param TApplication Prado application, can be null * @param TXmlElement configuration for this module, can be null * @throws TConfigurationException if memcache extension is not installed or memcache sever connection fails */ @@ -108,7 +108,7 @@ class TMemCache extends TComponent implements IModule, ICache $this->_cache=new Memcache; if($this->_cache->connect($this->_host,$this->_port)===false) throw new TInvalidConfigurationException('memcache_connection_failed'); - if($application instanceof IApplication) + if($application instanceof TApplication) $this->_prefix=$application->getUniqueID(); $this->_initialized=true; $application->setCache($this); diff --git a/framework/Data/TSqliteCache.php b/framework/Data/TSqliteCache.php index f589f93d..eac22dd2 100644 --- a/framework/Data/TSqliteCache.php +++ b/framework/Data/TSqliteCache.php @@ -103,7 +103,7 @@ class TSqliteCache extends TComponent implements IModule, ICache * property is set, and creates a SQLiteDatabase instance for it. * The database or the cache table does not exist, they will be created. * Expired values are also deleted. - * @param IApplication Prado application, can be null + * @param TApplication Prado application, can be null * @param TXmlElement configuration for this module, can be null * @throws TConfigurationException if sqlite extension is not installed, * DbFile is set invalid, or any error happens during creating database or cache table. -- cgit v1.2.3