public static function getActive() {
return array(
'_PEAR_default_error_mode' => $GLOBALS['_PEAR_default_error_mode'],
public static function getActive() {
return array(
'_PEAR_default_error_mode' => $GLOBALS['_PEAR_default_error_mode'],
'modeException' => CRM_Core_Error::$modeException,
);
}
/**
* Set the active error-handler settings
'modeException' => CRM_Core_Error::$modeException,
);
}
/**
* Set the active error-handler settings
*/
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'];
}