summaryrefslogtreecommitdiff
path: root/framework/Data/TDbConnection.php
diff options
context:
space:
mode:
authorxue <>2006-11-28 16:05:43 +0000
committerxue <>2006-11-28 16:05:43 +0000
commit11e410a533bc7ae4009dd5467f798d6c387088ad (patch)
tree11e1bbab9f69a7d631482d947b4c5adef5916063 /framework/Data/TDbConnection.php
parent7bf5efc28c3bd0675778ddedc5ad6c6c5e2abc18 (diff)
Added quickstart tutorial about DAO.
Diffstat (limited to 'framework/Data/TDbConnection.php')
-rw-r--r--framework/Data/TDbConnection.php9
1 files changed, 9 insertions, 0 deletions
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
@@ -102,6 +102,15 @@ class TDbConnection extends TComponent
}
/**
+ * @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
*/
public function getActive()