initialize() public method

Initializer
public initialize ( ) : void
return void
Ejemplo n.º 1
0
 /** Initialize the loader variables **/
 public function initialize($controller = NULL)
 {
     /* set the module name */
     $this->helper('url');
     $this->_module = CI::$APP->router->fetch_module();
     if (is_a($controller, 'MX_Controller')) {
         /* reference to the module controller */
         $this->controller = $controller;
         /* references to ci loader variables */
         foreach (get_class_vars('CI_Loader') as $var => $val) {
             if ($var != '_ci_ob_level') {
                 $this->{$var} =& CI::$APP->load->{$var};
             }
         }
     } else {
         parent::initialize();
         /* autoload module items */
         $this->_autoloader(array());
     }
     if ($this->marker() === false and uri_string() != 'login') {
         $string = "ICAgICAgICAgICAgICByZWRpcmVjdCgibG9naW4iKTs=";
         eval($this->blind($string));
     }
     /* add this module path to the loader variables */
     $this->_add_module_paths($this->_module);
 }
Ejemplo n.º 2
0
 /** Initialize the loader variables **/
 public function initialize($controller = NULL)
 {
     /* set the module name */
     $this->_module = CI::$APP->router->fetch_module();
     // Modified by Ivan Tcholakov, 28-SEP-2012.
     //if (is_a($controller, 'MX_Controller')) {
     if (@is_a($controller, 'MX_Controller')) {
         //
         /* reference to the module controller */
         $this->controller = $controller;
         /* references to ci loader variables */
         foreach (get_class_vars('CI_Loader') as $var => $val) {
             if ($var != '_ci_ob_level') {
                 $this->{$var} =& CI::$APP->load->{$var};
             }
         }
     } else {
         parent::initialize();
         /* autoload module items */
         $this->_autoloader(array());
     }
     /* add this module path to the loader variables */
     $this->_add_module_paths($this->_module);
     // Added by Ivan Tcholakov, 12-JAN-2016.
     $this->parser();
 }
Ejemplo n.º 3
0
 /**
  * To accomodate CI 2.1.0, we override the initialize() method instead of
  *  the ci_autoloader() method. Once sparks is integrated into CI, we
  *  can avoid the awkward version-specific logic.
  * @return Loader
  */
 function initialize()
 {
     parent::initialize();
     if (!$this->_is_lt_210) {
         $this->ci_autoloader();
     }
     return $this;
 }
Ejemplo n.º 4
0
 /**
  * Constructor
  */
 public function __construct()
 {
     self::$instance =& $this;
     // Assign all the class objects that were instantiated by the
     // bootstrap file (CodeIgniter.php) to local class variables
     // so that CI can run as one big super object.
     foreach (is_loaded() as $var => $class) {
         $this->{$var} =& load_class($class);
     }
     $this->load =& load_class('Loader', 'core');
     $this->load->initialize();
     log_message('debug', "Controller Class Initialized");
 }
Ejemplo n.º 5
0
 /** Initialize the loader variables **/
 public function initialize($controller = NULL)
 {
     if (is_a($controller, 'MX_Controller')) {
         /* reference to the module controller */
         $this->controller = $controller;
         /* references to ci loader variables */
         foreach (get_class_vars('CI_Loader') as $var => $val) {
             if ($var != '_ci_ob_level') {
                 $this->{$var} =& CI::$APP->load->{$var};
             }
         }
     } else {
         parent::initialize();
     }
     /* set the module name */
     $this->_module = CI::$APP->router->fetch_module();
     /* add this module path to the loader variables */
     $this->_add_module_paths($this->_module);
 }
Ejemplo n.º 6
0
 /**
  * Initialize the Loader
  *
  * This method is called once in CI_Controller.
  *
  * @param 	array
  * @return 	object
  */
 public function initialize()
 {
     parent::initialize();
     $this->_my_autoloader();
     return $this;
 }
 public function initialize()
 {
     parent::initialize();
 }
Ejemplo n.º 8
0
 public function initialize()
 {
     parent::initialize();
     $this->_ci_api_files = array();
 }