From 488bc60e3e84096ee2a58471c8028cb3c682b371 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 9 Mar 2007 20:21:01 +0000 Subject: added TDbUserManager and TDbUser. --- framework/Data/TDataSourceConfig.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'framework/Data') diff --git a/framework/Data/TDataSourceConfig.php b/framework/Data/TDataSourceConfig.php index 93857b16..df444e97 100644 --- a/framework/Data/TDataSourceConfig.php +++ b/framework/Data/TDataSourceConfig.php @@ -10,6 +10,8 @@ * @package System.Data */ +Prado::using('System.Data.TDbConnection'); + /** * TDataSourceConfig module class provides configuration for database connections. * @@ -46,7 +48,7 @@ */ class TDataSourceConfig extends TModule { - private $_connID; + private $_connID=''; private $_conn; private $_connClass='System.Data.TDbConnection'; @@ -91,9 +93,9 @@ class TDataSourceConfig extends TModule */ public function getDbConnection() { - if(is_null($this->_conn)) + if($this->_conn===null) { - if(!is_null($this->_connID)) + if($this->_connID!=='') $this->_conn = $this->findConnectionByID($this->getConnectionID()); else $this->_conn = Prado::createComponent($this->getConnectionClass()); -- cgit v1.2.3