From 97b2fc5dda7244278cbe215b8c5a66d657575106 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Fri, 15 Jul 2011 17:57:57 +0200 Subject: [PATCH] bacula-web: New getDriver() function in CDB class --- gui/bacula-web/includes/db/cdb.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gui/bacula-web/includes/db/cdb.class.php b/gui/bacula-web/includes/db/cdb.class.php index 0cfb0203a2..215b9a398a 100644 --- a/gui/bacula-web/includes/db/cdb.class.php +++ b/gui/bacula-web/includes/db/cdb.class.php @@ -54,6 +54,11 @@ class CDB $this->connection->setAttribute( $option, $value); } + public function getDriver() + { + return $this->connection->getAttribute( PDO::ATTR_DRIVER_NAME ); + } + public function runQuery( $query) { $this->result =& $this->connection->prepare( $query ); -- 2.39.5