From dd028bec3822d1d9c28c35d599d687e038c7705f Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 4 Jan 2007 11:23:26 +0000 Subject: Add chat demo and tutorial. --- framework/Data/TDataSourceConfig.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'framework/Data/TDataSourceConfig.php') diff --git a/framework/Data/TDataSourceConfig.php b/framework/Data/TDataSourceConfig.php index 2cf74106..93857b16 100644 --- a/framework/Data/TDataSourceConfig.php +++ b/framework/Data/TDataSourceConfig.php @@ -101,6 +101,15 @@ class TDataSourceConfig extends TModule return $this->_conn; } + /** + * Alias for getDbConnection(). + * @return TDbConnection database connection. + */ + public function getDatabase() + { + return $this->getDbConnection(); + } + /** * @param string Database connection class name to be created. */ -- cgit v1.2.3