示例#1
0
 /**
   Override to convert $type argument if needed
   for backwards compatibility
 */
 public function addConnection($server, $type, $database, $username, $password = '', $persistent = false, $new = false)
 {
     /**
       Convert old lane style to ADO style
       naming for PDO MySQL
     */
     if (strtolower($type) == 'pdomysql') {
         $type = 'pdo_mysql';
     }
     return parent::addConnection($server, $type, $database, $username, $password, $persistent, $new);
 }
示例#2
0
 /**
   Override to initialize QUERY_LOG
 */
 public function __construct($server, $type, $database, $username, $password = '', $persistent = false, $new = false)
 {
     $this->setQueryLog(new FannieLogger());
     parent::__construct($server, $type, $database, $username, $password, $persistent, $new);
 }