From: Davide Franco Date: Fri, 15 Jul 2011 15:57:57 +0000 (+0200) Subject: bacula-web: New getDriver() function in CDB class X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=97b2fc5dda7244278cbe215b8c5a66d657575106;p=bacula%2Fbacula bacula-web: New getDriver() function in CDB class --- 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 );