本文整理汇总了PHP中wfSetBit函数的典型用法代码示例。如果您正苦于以下问题:PHP wfSetBit函数的具体用法?PHP wfSetBit怎么用?PHP wfSetBit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wfSetBit函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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 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 );
}
示例2: 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);
}