当前位置: 首页>>代码示例>>PHP>>正文


PHP CI_Loader::initialize方法代码示例

本文整理汇总了PHP中CI_Loader::initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP CI_Loader::initialize方法的具体用法?PHP CI_Loader::initialize怎么用?PHP CI_Loader::initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CI_Loader的用法示例。


在下文中一共展示了CI_Loader::initialize方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: initialize

 /** 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);
 }
开发者ID:budhinusa,项目名称:kurcaci,代码行数:27,代码来源:Loader.php

示例2: initialize

 /** 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();
 }
开发者ID:acamboy,项目名称:starter-public-edition-3,代码行数:27,代码来源:Loader.php

示例3: initialize

 /**
  * 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;
 }
开发者ID:baldji,项目名称:CodeIgniter-Tutorial,代码行数:14,代码来源:MY_Loader.php

示例4: __construct

 /**
  * 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");
 }
开发者ID:syalr,项目名称:vitime-meeting,代码行数:16,代码来源:Controller.php

示例5: initialize

 /** 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);
 }
开发者ID:quantumsized,项目名称:InvoicePlane,代码行数:20,代码来源:Loader.php

示例6: initialize

 /**
  * 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;
 }
开发者ID:cordova2009,项目名称:SMA,代码行数:14,代码来源:MY_Loader.php

示例7: initialize

 public function initialize()
 {
     parent::initialize();
 }
开发者ID:JCSama,项目名称:Z-Ray-Plugin-for-CodeIgniter,代码行数:4,代码来源:MY_Loader.php

示例8: initialize

 public function initialize()
 {
     parent::initialize();
     $this->_ci_api_files = array();
 }
开发者ID:AnthemiusGuo,项目名称:managerproject,代码行数:5,代码来源:MY_Loader.php


注:本文中的CI_Loader::initialize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。