system/core/classes/libraries/database/AbstractMySQLDataSource.php
protected function getNewConnection($connections)
    {
        $connection = $this->ApplicationContext->object($this->DatabaseServiceName);
        $connection->setConnectionInfo($connections);
        return $connection;
    }
protected function getNewConnection($connections)
    {
        $connection = $this->ApplicationContext->object($this->DatabaseServiceName);
        $connection->setConnectionInfo($connections);
        return $connection;
    }
protected function getNewConnection ( $ connections ) { $ connection = $ this -> ApplicationContext -> object ( $ this -> DatabaseServiceName ) ; $ connection -> setConnectionInfo ( $ connections ) ; return $ connection ; }
Gets a new connection using the connection info given

@param array $connectionInfo An array of connection info

@return DatabaseInterface
Gets a new connection using the connection info given