+++ /dev/null
-<?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);
- }
-
-}
<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 -->
<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>