lib/Config.php
public function setConnections($connections, $defaultConnection=null)
	{
		if (!is_array($connections)) {
			throw new ConfigException("Connections must be an array");
		}

		if ($defaultConnection) {
			$this->setDefaultConnection($defaultConnection);
		}

		// Store it!
		$this->_connections = $connections;

	}
public function setConnections($connections, $defaultConnection=null)
	{
		if (!is_array($connections)) {
			throw new ConfigException("Connections must be an array");
		}

		if ($defaultConnection) {
			$this->setDefaultConnection($defaultConnection);
		}

		// Store it!
		$this->_connections = $connections;

	}
public function setConnections ( $ connections , $ defaultConnection = null ) { if ( ! is_array ( $ connections ) ) { throw new ConfigException ( "Connections must be an array" ) ; } if ( $ defaultConnection ) { $ this -> setDefaultConnection ( $ defaultConnection ) ; } // Store it! $ this -> _connections = $ connections ; }
Sets the list of database connection strings.

<code>
$config->setConnections(array(
'development' => 'mysql://username:password@127.0.0.1/database_name'));
</code>

@param array 	Array of connections
@param string 	Optionally specify the default_connection
@return void
@throws ActiveRecord\ConfigException
Sets the list of database connection strings .