本文整理汇总了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);
}
示例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();
}
示例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;
}
示例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");
}
示例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);
}
示例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;
}
示例7: initialize
public function initialize()
{
parent::initialize();
}
示例8: initialize
public function initialize()
{
parent::initialize();
$this->_ci_api_files = array();
}