/** * Initialize execption class * * @return void */ public function __construct() { parent::__construct(); if (function_exists('get_instance') && class_exists('CI_Controller', false)) { $this->ci = get_instance(); } }
function __construct() { parent::__construct(); if (class_exists('CI_Controller')) { $this->ci =& get_instance(); } else { require_once ARCHPATH . 'helpers/x_helper.php'; } }
/** * Construct * * Sets the error handlers. * * @access public * @return void */ public function __construct() { parent::__construct(); //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 __construct() { parent::__construct(); if (class_exists('CI_Controller')) { $CI =& get_instance(); if (!empty($CI)) { $CI->lang->load_gettext(); } else { $GLOBALS['LANG']->load_gettext(); } } else { require_once ARCHPATH . 'helpers/x_helper' . EXT; } }
/** * Construct * * Sets the error handlers. * * @access public * @return void */ public function __construct() { parent::__construct(); // 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')); }
/** * Construct * * Sets the error handlers. * * @access public * @return void */ public function __construct() { parent::__construct(); // 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 __construct() { parent::__construct(); }
/** * Class constructor */ public function __construct() { parent::__construct(); $this->CI =& get_instance(); }
public function __construct() { parent::__construct(); $this->output =& load_class('Output', 'core'); $this->input =& load_class('Input', 'core'); }
/** * Controller * * @access public */ function My_Exceptions() { parent::__construct(); }
function __construct() { parent::__construct(); log_message('debug', 'MY_Exceptions Class Initialized'); }
function __construct() { return parent::__construct(); }
/** * Class constructor * */ public function __construct() { parent::__construct(); // Note: Do not log messages from this constructor. }