summaryrefslogtreecommitdiff
path: root/framework/Data
diff options
context:
space:
mode:
authorxue <>2005-11-17 15:28:20 +0000
committerxue <>2005-11-17 15:28:20 +0000
commitaa2edcf52ee7438876d826283274bf7e271fad4a (patch)
tree0028051b95e14fb09f52b993122910d2ef7a2fe8 /framework/Data
parentb4f41b167b62bb628d0809fc0e9438e11dce2bb5 (diff)
Modified how errors are handled.
Diffstat (limited to 'framework/Data')
-rw-r--r--framework/Data/TMemCache.php4
-rw-r--r--framework/Data/TSqliteCache.php2
2 files changed, 3 insertions, 3 deletions
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.