public function useConnection($name)
    {
        if (!array_key_exists($name, $this->_toolboxes)) {
            throw new ClientException("The connection ($name) you are trying to use is not registered with the client.");
        }

        $this->_currentConnection = $name;
    }
public function useConnection($name)
    {
        if (!array_key_exists($name, $this->_toolboxes)) {
            throw new ClientException("The connection ($name) you are trying to use is not registered with the client.");
        }

        $this->_currentConnection = $name;
    }
public function useConnection ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> _toolboxes ) ) { throw new ClientException ( "The connection ($name) you are trying to use is not registered with the client." ) ; } $ this -> _currentConnection = $ name ; }
Selects the connection as current connection. Any method executed through the client will use this connection.
@param  string          $name The name of the connection to use.
@throws ClientException
Selects the connection as current connection . Any method executed through the client will use this connection .