public function SelectAdapter($key = null)
	{
		if ($key) {
			$this->Observe("Selecting DataAdapter with key '$key'",OBSERVE_DEBUG);
			if (!array_key_exists($key, $this->DataAdapters))
				throw new Exception("No DataAdapter with key '$key' is available");
			$this->DataAdapter = $this->DataAdapters[$key];
		}
		else {
			$this->Observe("Selecting Default DataAdapter",OBSERVE_DEBUG);
			$adapters = array_values($this->DataAdapters);
			$this->DataAdapter = $adapters[0];
		}
		
		return $this->DataAdapter;
	}
public function SelectAdapter($key = null)
	{
		if ($key) {
			$this->Observe("Selecting DataAdapter with key '$key'",OBSERVE_DEBUG);
			if (!array_key_exists($key, $this->DataAdapters))
				throw new Exception("No DataAdapter with key '$key' is available");
			$this->DataAdapter = $this->DataAdapters[$key];
		}
		else {
			$this->Observe("Selecting Default DataAdapter",OBSERVE_DEBUG);
			$adapters = array_values($this->DataAdapters);
			$this->DataAdapter = $adapters[0];
		}
		
		return $this->DataAdapter;
	}
public function SelectAdapter ( $ key = null ) { if ( $ key ) { $ this -> Observe ( "Selecting DataAdapter with key '$key'" , OBSERVE_DEBUG ) ; if ( ! array_key_exists ( $ key , $ this -> DataAdapters ) ) throw new Exception ( "No DataAdapter with key '$key' is available" ) ; $ this -> DataAdapter = $ this -> DataAdapters [ $ key ] ; } else { $ this -> Observe ( "Selecting Default DataAdapter" , OBSERVE_DEBUG ) ; $ adapters = array_values ( $ this -> DataAdapters ) ; $ this -> DataAdapter = $ adapters [ 0 ] ; } return $ this -> DataAdapter ; }
SelectAdapter will change the DataAdapter, allowing the application
to query from multiple data sources.  The connection strings for
each database should be passed in an array during construction of
the Phreezer object.

Once this method is called, all DB calls will be made to this connection
until another adapter is selected.

@param string $key
@return DataAdapter the selected DataAdapter
SelectAdapter will change the DataAdapter allowing the application to query from multiple data sources . The connection strings for each database should be passed in an array during construction of the Phreezer object .