function _connect($dsn)
    {
        if (is_string($dsn) || is_array($dsn)) {
        	if(!$this->db) {
	        	$this->db = ADONewConnection($dsn);
	    		if( $err = ADODB_Pear_error() ) {
	   	    		return PEAR::raiseError($err);
	    		}
        	}

        } else {
            return PEAR::raiseError('The given dsn was not valid in file ' . __FILE__ . ' at line ' . __LINE__,
                                    41,
                                    PEAR_ERROR_RETURN,
                                    null,
                                    null
                                    );
        }

        if(!$this->db) {
        	return PEAR::raiseError(ADODB_Pear_error());
        } else {
        	return true;
        }
    }
function _connect($dsn)
    {
        if (is_string($dsn) || is_array($dsn)) {
        	if(!$this->db) {
	        	$this->db = ADONewConnection($dsn);
	    		if( $err = ADODB_Pear_error() ) {
	   	    		return PEAR::raiseError($err);
	    		}
        	}

        } else {
            return PEAR::raiseError('The given dsn was not valid in file ' . __FILE__ . ' at line ' . __LINE__,
                                    41,
                                    PEAR_ERROR_RETURN,
                                    null,
                                    null
                                    );
        }

        if(!$this->db) {
        	return PEAR::raiseError(ADODB_Pear_error());
        } else {
        	return true;
        }
    }
function _connect ( $ dsn ) { if ( is_string ( $ dsn ) || is_array ( $ dsn ) ) { if ( ! $ this -> db ) { $ this -> db = ADONewConnection ( $ dsn ) ; if ( $ err = ADODB_Pear_error ( ) ) { return PEAR :: raiseError ( $ err ) ; } } } else { return PEAR :: raiseError ( 'The given dsn was not valid in file ' . __FILE__ . ' at line ' . __LINE__ , 41 , PEAR_ERROR_RETURN , null , null ) ; } if ( ! $ this -> db ) { return PEAR :: raiseError ( ADODB_Pear_error ( ) ) ; } else { return true ; } }
Connect to database by using the given DSN string

@access private
@param  string DSN string
@return mixed  Object on error, otherwise bool
Connect to database by using the given DSN string