From e46972a7604525ba894361d5c947e482340b0a38 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Thu, 14 Jan 2010 16:35:36 -0500 Subject: [PATCH] Remove Horde_Db_Adapter, which only contained a factory. --- framework/Db/lib/Horde/Db/Adapter.php | 41 ----------------------------------- framework/Db/package.xml | 2 -- 2 files changed, 43 deletions(-) delete mode 100644 framework/Db/lib/Horde/Db/Adapter.php diff --git a/framework/Db/lib/Horde/Db/Adapter.php b/framework/Db/lib/Horde/Db/Adapter.php deleted file mode 100644 index 4b8cd40ea..000000000 --- a/framework/Db/lib/Horde/Db/Adapter.php +++ /dev/null @@ -1,41 +0,0 @@ - - * @author Derek DeVries - * @author Chuck Hagenbuch - * @license http://opensource.org/licenses/bsd-license.php - * @category Horde - * @package Horde_Db - * @subpackage Adapter - */ - -/** - * @author Mike Naberezny - * @author Derek DeVries - * @author Chuck Hagenbuch - * @license http://opensource.org/licenses/bsd-license.php - * @category Horde - * @package Horde_Db - * @subpackage Adapter - */ -class Horde_Db_Adapter -{ - /** - * Handle Horde-style configuration arrays, PEAR DB/MDB2 arrays or DSNs, or - * PDO DSNS. - */ - public static function factory($config) - { - $adapter = str_replace(' ', '_' , ucwords(str_replace('_', ' ', basename($config['adapter'])))); - $class = 'Horde_Db_Adapter_' . $adapter; - if (!class_exists($class)) { - throw new Horde_Db_Exception('Adapter class "' . $class . '" not found'); - } - - return new $class($config); - } - -} diff --git a/framework/Db/package.xml b/framework/Db/package.xml index f1b3b0bad..537fc9e71 100644 --- a/framework/Db/package.xml +++ b/framework/Db/package.xml @@ -83,7 +83,6 @@ http://pear.php.net/dtd/package-2.0.xsd"> - @@ -139,7 +138,6 @@ http://pear.php.net/dtd/package-2.0.xsd"> - -- 2.11.0