本文整理汇总了PHP中Phpfox_Error::_bSkipError方法的典型用法代码示例。如果您正苦于以下问题:PHP Phpfox_Error::_bSkipError方法的具体用法?PHP Phpfox_Error::_bSkipError怎么用?PHP Phpfox_Error::_bSkipError使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Phpfox_Error
的用法示例。
在下文中一共展示了Phpfox_Error::_bSkipError方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: skip
/**
* If debug mode is enabled and you want to make sure to skip error reporting
* you can use this method to force us to skip error reporting and then later
* turn it back on. We mainly use this when dealing with 3rd party libraries
* since we did not develop the code we are not fully aware of the coding standards
* applied.
*
* @static
* @param bool $bSkipError TRUE to skip error reporting and FALSE to turn error reporting back on.
*/
public static function skip($bSkipError)
{
if ($bSkipError === true) {
error_reporting(0);
} else {
error_reporting(PHPFOX_DEBUG ? E_ALL | E_STRICT : 0);
}
self::$_bSkipError = $bSkipError;
}