original_string: function Error($err,$fn)
  	{
  	global $_ADODB_ACTIVE_DBS;
  
  		$fn = get_class($this).'::'.$fn;
  		$this->_lasterr = $fn.': '.$err;
  
  		if ($this->_dbat < 0) {
  			$db = false;
  		}
  		else {
  			$activedb = $_ADODB_ACTIVE_DBS[$this->_dbat];
  			$db = $activedb->db;
  		}
  
  		if (function_exists('adodb_throw')) {
  			if (!$db) {
  				adodb_throw('ADOdb_Active_Record', $fn, -1, $err, 0, 0, false);
  			}
  			else {
  				adodb_throw($db->databaseType, $fn, -1, $err, 0, 0, $db);
  			}
  		} else {
  			if (!$db || $db->debug) {
  				ADOConnection::outp($this->_lasterr);
  			}
  		}
  
  	}
code: function Error($err,$fn)
  	{
  	global $_ADODB_ACTIVE_DBS;
  
  		$fn = get_class($this).'::'.$fn;
  		$this->_lasterr = $fn.': '.$err;
  
  		if ($this->_dbat < 0) {
  			$db = false;
  		}
  		else {
  			$activedb = $_ADODB_ACTIVE_DBS[$this->_dbat];
  			$db = $activedb->db;
  		}
  
  		if (function_exists('adodb_throw')) {
  			if (!$db) {
  				adodb_throw('ADOdb_Active_Record', $fn, -1, $err, 0, 0, false);
  			}
  			else {
  				adodb_throw($db->databaseType, $fn, -1, $err, 0, 0, $db);
  			}
  		} else {
  			if (!$db || $db->debug) {
  				ADOConnection::outp($this->_lasterr);
  			}
  		}
  
  	}
code_tokens: function Error ( $ err , $ fn ) { global $ _ADODB_ACTIVE_DBS ; $ fn = get_class ( $ this ) . '::' . $ fn ; $ this -> _lasterr = $ fn . ': ' . $ err ; if ( $ this -> _dbat < 0 ) { $ db = false ; } else { $ activedb = $ _ADODB_ACTIVE_DBS [ $ this -> _dbat ] ; $ db = $ activedb -> db ; } if ( function_exists ( 'adodb_throw' ) ) { if ( ! $ db ) { adodb_throw ( 'ADOdb_Active_Record' , $ fn , - 1 , $ err , 0 , 0 , false ) ; } else { adodb_throw ( $ db -> databaseType , $ fn , - 1 , $ err , 0 , 0 , $ db ) ; } } else { if ( ! $ db || $ db -> debug ) { ADOConnection :: outp ( $ this -> _lasterr ) ; } } }
docstring: error handler for both PHP4+5.
docstring_tokens: error handler for both PHP4 + 5 .