From 11e410a533bc7ae4009dd5467f798d6c387088ad Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 28 Nov 2006 16:05:43 +0000 Subject: Added quickstart tutorial about DAO. --- framework/Data/TDbConnection.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'framework/Data') diff --git a/framework/Data/TDbConnection.php b/framework/Data/TDbConnection.php index 9652258d..f0a0bc0d 100644 --- a/framework/Data/TDbConnection.php +++ b/framework/Data/TDbConnection.php @@ -101,6 +101,15 @@ class TDbConnection extends TComponent $this->_password=$password; } + /** + * @return array list of available PDO drivers + * @see http://www.php.net/manual/en/function.pdo-getavailabledrivers.php + */ + public static function getAvailableDrivers() + { + return PDO::getAvailableDrivers(); + } + /** * @return boolean whether the DB connection is established */ -- cgit v1.2.3