* @return CRM_Core_TemporaryErrorScope
*/
public static function create($callback, $modeException = NULL) {
* @return CRM_Core_TemporaryErrorScope
*/
public static function create($callback, $modeException = NULL) {
'_PEAR_default_error_mode' => PEAR_ERROR_CALLBACK,
'_PEAR_default_error_options' => $callback,
'modeException' => $modeException,
'_PEAR_default_error_mode' => PEAR_ERROR_CALLBACK,
'_PEAR_default_error_options' => $callback,
'modeException' => $modeException,
*/
public static function setActive($frame) {
$GLOBALS['_PEAR_default_error_mode'] = $frame['_PEAR_default_error_mode'];
$GLOBALS['_PEAR_default_error_options'] = $frame['_PEAR_default_error_options'];
CRM_Core_Error::$modeException = $frame['modeException'];
}
*/
public static function setActive($frame) {
$GLOBALS['_PEAR_default_error_mode'] = $frame['_PEAR_default_error_mode'];
$GLOBALS['_PEAR_default_error_options'] = $frame['_PEAR_default_error_options'];
CRM_Core_Error::$modeException = $frame['modeException'];
}