]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: New getDriver() function in CDB class
authorDavide Franco <bacula-dev@dflc.ch>
Fri, 15 Jul 2011 15:57:57 +0000 (17:57 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:24 +0000 (14:49 +0200)
gui/bacula-web/includes/db/cdb.class.php

index 0cfb0203a2884ebfc971ae443dc34a82d931432c..215b9a398a2c69c23c570a6c2601eece7c57a054 100644 (file)
@@ -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 );