diff --git a/lib/Doctrine/Config.php b/lib/Doctrine/Config.php index ac2695703..30096ca0a 100644 --- a/lib/Doctrine/Config.php +++ b/lib/Doctrine/Config.php @@ -1,19 +1,74 @@ . + */ + +/** + * Doctrine_Config + * + * Class used to simplify the setup and configuration of a doctrine implementation. + * + * @package Doctrine + * @subpackage Config + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.phpdoctrine.com + * @since 1.0 + * @version $Revision: 2753 $ + * @author Konsta Vesterinen + * @author Jonathan H. Wage + */ class Doctrine_Config { protected $connections = array(); protected $cliConfig = array(); + /** + * addConnection + * + * @param string $adapter + * @param string $name + * @return void + */ public function addConnection($adapter, $name = null) { $connections[] = Doctrine_Manager::getInstance()->openConnection($adapter, $name); } + /** + * bindComponent + * + * @param string $modelName + * @param string $connectionName + * @return void + */ public function bindComponent($modelName, $connectionName) { return Doctrine_Manager::getInstance()->bindComponent($modelName, $connectionName); } + /** + * setAttribute + * + * @param string $key + * @param string $value + * @return void + */ public function setAttribute($key, $value) { foreach ($this->connections as $connection) { @@ -21,11 +76,23 @@ class Doctrine_Config } } + /** + * addCliConfig + * + * @param string $key + * @param string $value + * @return void + */ public function addCliConfig($key, $value) { $this->cliConfig[$key] = $value; } + /** + * getCliConfig + * + * @return void + */ public function getCliConfig() { return $this->cliConfig; diff --git a/lib/config.php.dist b/lib/config.php.dist index 2e2d11c06..6f0d03c62 100644 --- a/lib/config.php.dist +++ b/lib/config.php.dist @@ -18,8 +18,9 @@ * and is licensed under the LGPL. For more information, see * . */ + /** - * Config + * Doctrine Configuration File * * This is a sample implementation of Doctrine * You can use the Doctrine_Config interface below to setup the basics.