Adding ConnectionManager::sourceList() to return the list of DataSources (Ticket #2274)

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5513 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-08-11 21:52:23 +00:00
parent 823672217a
commit 481fe8576c

View file

@ -113,6 +113,15 @@ class ConnectionManager extends Object {
return $_this->_dataSources[$name];
}
/**
* Gets the list of available DataSource connections
*
* @return array
*/
function sourceList() {
$_this =& ConnectionManager::getInstance();
return array_keys($_this->_dataSources);
}
/**
* Gets a DataSource name from an object reference
*