當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。