__construct() public method

Class constructor
public __construct ( ) : void
return void
 /**
  * Initialize execption class
  *
  * @return    void
  */
 public function __construct()
 {
     parent::__construct();
     if (function_exists('get_instance') && class_exists('CI_Controller', false)) {
         $this->ci = get_instance();
     }
 }
示例#2
0
 function __construct()
 {
     parent::__construct();
     if (class_exists('CI_Controller')) {
         $this->ci =& get_instance();
     } else {
         require_once ARCHPATH . 'helpers/x_helper.php';
     }
 }
示例#3
0
 /**
  * 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());
 }
示例#4
0
 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;
     }
 }
示例#5
0
 /**
  * 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'));
 }
示例#6
0
 /**
  * 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');
 }
示例#10
0
 /** 
  * Controller 
  * 
  * @access public 
  */
 function My_Exceptions()
 {
     parent::__construct();
 }
示例#11
0
 function __construct()
 {
     parent::__construct();
     log_message('debug', 'MY_Exceptions Class Initialized');
 }
示例#12
0
 function __construct()
 {
     return parent::__construct();
 }
示例#13
0
 /**
  * Class constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     // Note: Do not log messages from this constructor.
 }