mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
823672217a
commit
481fe8576c
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue