/** * Construct * * Sets the error handlers. * * @access public * @return void */ public function __construct() { parent::CI_Exceptions(); //Set the Exception Handler set_exception_handler(array('MY_Exceptions', 'exception_handler')); // Set the Error Handler set_error_handler(array('MY_Exceptions', 'error_handler')); // Set the handler for shutdown to catch Parse errors register_shutdown_function(array('MY_Exceptions', 'shutdown_handler')); // This is a hack to set the default timezone if it isn't set. Not setting it causes issues. date_default_timezone_set(date_default_timezone_get()); }
/** * Construct * * Sets the error handlers. * * @access public * @return void */ public function __construct() { parent::CI_Exceptions(); // If we are in production, then lets dump out now. if (IN_PRODUCTION) { return; } //Set the Exception Handler set_exception_handler(array('MY_Exceptions', 'exception_handler')); // Set the Error Handler set_error_handler(array('MY_Exceptions', 'error_handler')); // Set the handler for shutdown to catch Parse errors register_shutdown_function(array('MY_Exceptions', 'shutdown_handler')); // This is a hack to set the default timezone if it isn't set. Not setting it causes issues. date_default_timezone_set(date_default_timezone_get()); }
function MY_Exceptions() { parent::CI_Exceptions(); }
public function __construct() { parent::CI_Exceptions(); }
function NIS_Exceptions() { parent::CI_Exceptions(); $this->CI =& get_instance(); }
/** * Constructor * */ function MY_Exceptions() { parent::CI_Exceptions(); $this->ob_level = ob_get_level(); // Note: Do not log messages from this constructor. }