Inheritance diagram for ConnectionManager:

Public Member Functions | |
| __construct () | |
| __destruct () | |
| __getDriver ($config) | |
Static Public Member Functions | |
| & | create ($name= '', $config=array()) |
| enumConnectionObjects () | |
| & | getDataSource ($name) |
| & | getInstance () |
| getSourceName (&$source) | |
| loadDataSource ($connName) | |
| sourceList () | |
Public Attributes | |
| $_connectionsEnum = array() | |
| $_dataSources = array() | |
| $config = null | |
Definition at line 38 of file connection_manager.php.
| ConnectionManager::__construct | ( | ) |
Constructor.
Reimplemented from Object.
Definition at line 64 of file connection_manager.php.
References config().
| ConnectionManager::__destruct | ( | ) |
Destructor.
private
Definition at line 257 of file connection_manager.php.
References Configure::read().
| ConnectionManager::__getDriver | ( | $ | config | ) |
Returns the file, class name, and parent for the given driver.
Definition at line 236 of file connection_manager.php.
References $config, $filename, and camelize().
| & ConnectionManager::create | ( | $ | name = '', |
|
| $ | config = array() | |||
| ) | [static] |
Dynamically creates a DataSource object at runtime, with the given name and settings
| string | $name The DataSource name | |
| array | $config The DataSource configuration settings |
Definition at line 217 of file connection_manager.php.
References $config, and getInstance().
| ConnectionManager::enumConnectionObjects | ( | ) | [static] |
Gets a list of class and file names associated with the user-defined DataSource connections
Definition at line 191 of file connection_manager.php.
References $config, config(), and getInstance().
| & ConnectionManager::getDataSource | ( | $ | name | ) | [static] |
Gets a reference to a DataSource object
| string | $name The name of the DataSource, as defined in app/config/database.php |
Definition at line 93 of file connection_manager.php.
References config(), and getInstance().
Referenced by CakeSchema::__columns(), SchemaShell::__create(), __destroy(), __gc(), TreeBehavior::__getMax(), TreeBehavior::__getMin(), ModelTask::__interactive(), __read(), SchemaShell::__run(), Model::__saveMulti(), Scaffold::__scaffold(), SchemaShell::__update(), __write(), Model::_deleteLinks(), Model::_findCount(), TranslateBehavior::beforeFind(), Model::call__(), Model::deconstruct(), Model::del(), Model::deleteAll(), SchemaShell::dump(), Sanitize::escape(), Model::escapeField(), Model::find(), Model::getAffectedRows(), Model::getColumnType(), Model::getDataSource(), Model::getNumRows(), ModelTask::listAll(), ControllerTask::listAll(), AclNode::node(), Model::query(), DboSource::queryAssociation(), DboOracle::queryAssociation(), DboSource::read(), CakeSchema::read(), TreeBehavior::recover(), TreeBehavior::removefromtree(), Model::save(), Model::saveAll(), Model::schema(), Model::setDataSource(), Model::setSource(), TranslateBehavior::setup(), and Model::updateAll().
| & ConnectionManager::getInstance | ( | ) | [static] |
Gets a reference to the ConnectionManger object instance
Definition at line 76 of file connection_manager.php.
Referenced by create(), enumConnectionObjects(), getDataSource(), getSourceName(), loadDataSource(), and sourceList().
| ConnectionManager::getSourceName | ( | &$ | source | ) | [static] |
Gets a DataSource name from an object reference
| object | $source DataSource object |
Definition at line 135 of file connection_manager.php.
References getInstance().
Referenced by DataSource::__cacheDescription(), and DataSource::listSources().
| ConnectionManager::loadDataSource | ( | $ | connName | ) | [static] |
Loads the DataSource class for the given connection name
| mixed | $connName A string name of the connection, as defined in app/config/database.php, or an array containing the filename (without extension) and class name of the object, to be found in app/models/datasources/ or cake/libs/model/datasources/. |
Definition at line 155 of file connection_manager.php.
References __(), fileExistsInPath(), and getInstance().
| ConnectionManager::sourceList | ( | ) | [static] |
Gets the list of available DataSource connections
Definition at line 123 of file connection_manager.php.
References getInstance().
| ConnectionManager::$_connectionsEnum = array() |
Definition at line 59 of file connection_manager.php.
| ConnectionManager::$_dataSources = array() |
Definition at line 52 of file connection_manager.php.
| ConnectionManager::$config = null |
Definition at line 45 of file connection_manager.php.
1.4.7