Remove Horde_Db_Adapter, which only contained a factory.
authorChuck Hagenbuch <chuck@horde.org>
Thu, 14 Jan 2010 21:35:36 +0000 (16:35 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Thu, 14 Jan 2010 21:35:36 +0000 (16:35 -0500)
framework/Db/lib/Horde/Db/Adapter.php [deleted file]
framework/Db/package.xml

diff --git a/framework/Db/lib/Horde/Db/Adapter.php b/framework/Db/lib/Horde/Db/Adapter.php
deleted file mode 100644 (file)
index 4b8cd40..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-/**
- * Copyright 2007 Maintainable Software, LLC
- * Copyright 2006-2010 The Horde Project (http://www.horde.org/)
- *
- * @author     Mike Naberezny <mike@maintainable.com>
- * @author     Derek DeVries <derek@maintainable.com>
- * @author     Chuck Hagenbuch <chuck@horde.org>
- * @license    http://opensource.org/licenses/bsd-license.php
- * @category   Horde
- * @package    Horde_Db
- * @subpackage Adapter
- */
-
-/**
- * @author     Mike Naberezny <mike@maintainable.com>
- * @author     Derek DeVries <derek@maintainable.com>
- * @author     Chuck Hagenbuch <chuck@horde.org>
- * @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);
-    }
-
-}
index f1b3b0b..537fc9e 100644 (file)
@@ -83,7 +83,6 @@ http://pear.php.net/dtd/package-2.0.xsd">
        <file name="Exception.php" role="php" />
        <file name="Migrator.php" role="php" />
       </dir> <!-- /lib/Horde/Db/Migration -->
-      <file name="Adapter.php" role="php" />
       <file name="Exception.php" role="php" />
       <file name="StatementParser.php" role="php" />
      </dir> <!-- /lib/Horde/Db -->
@@ -139,7 +138,6 @@ http://pear.php.net/dtd/package-2.0.xsd">
    <install name="lib/Horde/Db/Migration/Exception.php" as="Horde/Db/Migration/Exception.php" />
    <install name="lib/Horde/Db/Migration/Migrator.php" as="Horde/Db/Migration/Migrator.php" />
 
-   <install name="lib/Horde/Db/Adapter.php" as="Horde/Db/Adapter.php" />
    <install name="lib/Horde/Db/Exception.php" as="Horde/Db/Exception.php" />
    <install name="lib/Horde/Db/StatementParser.php" as="Horde/Db/StatementParser.php" />
   </filelist>