/** * Turns on (false) or off (true) the automatic generation and sending * of a "we're sorry, but there has been a database error" page on * database errors. Default is on (false). When turned off, the * code should use lastErrno() and lastError() to handle the * situation as appropriate. * * Do not use this function outside of the Database classes. * * @param $ignoreErrors bool|null * * @return bool The previous value of the flag. */ public function ignoreErrors( $ignoreErrors = null ) { return wfSetBit( $this->mFlags, DBO_IGNORE, $ignoreErrors ); }
/** * Turns on (false) or off (true) the automatic generation and sending * of a "we're sorry, but there has been a database error" page on * database errors. Default is on (false). When turned off, the * code should use wfLastErrno() and wfLastError() to handle the * situation as appropriate. */ function ignoreErrors($ignoreErrors = NULL) { return wfSetBit($this->mFlags, DBO_IGNORE, $ignoreErrors); }