protected function parseConnectionInformation()
    {
        if ( ( $info = @parse_url( $this->dsn ) ) === false )
        {
            fwrite( $this->stderr, "Could not parse provided DSN: {$this->dsn}\n" );
            return false;
        }

        foreach ( $info as $key => $value )
        {
            if ( array_key_exists( $key, $this->connectionInfo ) )
            {
                $this->connectionInfo[$key] = $value;
            }
        }

        if ( isset( $this->options['username'] ) )
        {
            $this->connectionInfo['user'] = $this->options['username'];
        }

        if ( isset( $this->options['password'] ) )
        {
            $this->connectionInfo['pass'] = $this->options['password'];
        }

        return true;
    }
protected function parseConnectionInformation()
    {
        if ( ( $info = @parse_url( $this->dsn ) ) === false )
        {
            fwrite( $this->stderr, "Could not parse provided DSN: {$this->dsn}\n" );
            return false;
        }

        foreach ( $info as $key => $value )
        {
            if ( array_key_exists( $key, $this->connectionInfo ) )
            {
                $this->connectionInfo[$key] = $value;
            }
        }

        if ( isset( $this->options['username'] ) )
        {
            $this->connectionInfo['user'] = $this->options['username'];
        }

        if ( isset( $this->options['password'] ) )
        {
            $this->connectionInfo['pass'] = $this->options['password'];
        }

        return true;
    }
protected function parseConnectionInformation ( ) { if ( ( $ info = @ parse_url ( $ this -> dsn ) ) === false ) { fwrite ( $ this -> stderr , "Could not parse provided DSN: {$this->dsn}\n" ) ; return false ; } foreach ( $ info as $ key => $ value ) { if ( array_key_exists ( $ key , $ this -> connectionInfo ) ) { $ this -> connectionInfo [ $ key ] = $ value ; } } if ( isset ( $ this -> options [ 'username' ] ) ) { $ this -> connectionInfo [ 'user' ] = $ this -> options [ 'username' ] ; } if ( isset ( $ this -> options [ 'password' ] ) ) { $ this -> connectionInfo [ 'pass' ] = $ this -> options [ 'password' ] ; } return true ; }
Parse the provided connection information

Returns false,if the connection information could not be parser
properly.

@return bool
Parse the provided connection information