public static function setDB($name, DBAdapter $adapter)
    {
        if ($name === null) {
            $name = self::getDefaultDB();
        }
        self::$adapterMap[$name] = $adapter;
    }
public static function setDB($name, DBAdapter $adapter)
    {
        if ($name === null) {
            $name = self::getDefaultDB();
        }
        self::$adapterMap[$name] = $adapter;
    }
public static function setDB ( $ name , DBAdapter $ adapter ) { if ( $ name === null ) { $ name = self :: getDefaultDB ( ) ; } self :: $ adapterMap [ $ name ] = $ adapter ; }
Sets a database adapter for specified datasource.

@param string    $name    The datasource name.
@param DBAdapter $adapter The DBAdapter implementation to use.
Sets a database adapter for specified datasource .