Example #1
0
 /**
  * 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());
 }
Example #2
0
 /**
  * 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());
 }
Example #3
0
 function MY_Exceptions()
 {
     parent::CI_Exceptions();
 }
Example #4
0
 public function __construct()
 {
     parent::CI_Exceptions();
 }
Example #5
0
 function NIS_Exceptions()
 {
     parent::CI_Exceptions();
     $this->CI =& get_instance();
 }
Example #6
0
 /**
  * Constructor
  *
  */
 function MY_Exceptions()
 {
     parent::CI_Exceptions();
     $this->ob_level = ob_get_level();
     // Note:  Do not log messages from this constructor.
 }