예제 #1
0
파일: Base.php 프로젝트: JamieLomas/pyrocms
	public function __construct() {

		/* assign the application instance */
		self::$APP = $this;

		/* re-assign language and config for modules */
		if ( ! is_a($this->lang, 'MX_Lang')) $this->lang = new MX_Lang;
		if ( ! is_a($this->config, 'MX_Config')) $this->config = new MX_Config;

		parent::__construct();
	}
예제 #2
0
파일: Ci.php 프로젝트: hqye/stblog
 public function __construct()
 {
     self::$APP = CI_Base::get_instance();
     /* assign the core loader */
     self::$APP->load = new MX_Loader();
     /* re-assign language and config for modules */
     if (!is_a(self::$APP->lang, 'MX_Lang')) {
         self::$APP->lang = new MX_Lang();
     }
     if (!is_a(self::$APP->config, 'MX_Config')) {
         self::$APP->config = new MX_Config();
     }
 }
예제 #3
0
파일: Ci.php 프로젝트: adamos42/ionize
 public function __construct()
 {
     /* assign the application instance */
     self::$APP = CI_Controller::get_instance();
     global $LANG, $CFG;
     /* re-assign language and config for modules */
     if (!$LANG instanceof HMVC_Lang) {
         $LANG = new HMVC_Lang();
     }
     if (!$CFG instanceof HMVC_Config) {
         $CFG = new HMVC_Config();
     }
 }
예제 #4
0
파일: Ci.php 프로젝트: darkwebside/Sprint
 public function __construct()
 {
     /* assign the application instance */
     self::$APP = CI_Controller::get_instance();
     global $LANG, $CFG;
     /* re-assign language and config for modules */
     if (!is_a($LANG, 'MX_Lang')) {
         $LANG = new MX_Lang();
     }
     if (!is_a($CFG, 'MX_Config')) {
         $CFG = new MX_Config();
     }
 }
예제 #5
0
파일: Ci.php 프로젝트: reith2004/pyrocms
	public function __construct() {
		
		self::$APP = CI_Controller::get_instance();

		/* assign the core loader */
		self::$APP->load = new MX_Loader;

		/* re-assign language and config for modules */
		if ( ! is_a(self::$APP->lang, 'MX_Lang')) self::$APP->lang = new MX_Lang;
		if ( ! is_a(self::$APP->config, 'MX_Config')) self::$APP->config = new MX_Config;

		/* autoload module items */
		self::$APP->load->_autoloader(array());
	}
예제 #6
0
파일: Base.php 프로젝트: adamos42/ionize
 public function __construct()
 {
     /* assign the application instance */
     self::$APP = $this;
     global $LANG, $CFG;
     /* re-assign language and config for modules */
     if (!$LANG instanceof HMVC_Lang) {
         $LANG = new HMVC_Lang();
     }
     if (!$CFG instanceof HMVC_Config) {
         $CFG = new HMVC_Config();
     }
     parent::__construct();
 }
예제 #7
0
 public function __construct()
 {
     parent::__construct();
     /* assign the application instance */
     self::$APP = $this;
     /* assign the core loader */
     $this->load = new CI_Loader();
     /* the core classes */
     $classes = array('config' => 'Config', 'input' => 'Input', 'benchmark' => 'Benchmark', 'uri' => 'URI', 'output' => 'Output', 'lang' => 'Language', 'router' => 'Router');
     /* assign the core classes */
     foreach ($classes as $key => $class) {
         $this->{$key} = load_class($class);
     }
     /* autoload application items */
     $this->load->_ci_autoloader();
 }
예제 #8
0
 public function __construct()
 {
     /* assign the application instance */
     self::$APP = MY_Controller::get_instance();
     global $LANG, $CFG;
     /* re-assign language and config for modules */
     // Modified by Ivan Tcholakov, 28-SEP-2012.
     //if ( ! is_a($LANG, 'MX_Lang')) $LANG = new MX_Lang;
     //if ( ! is_a($CFG, 'MX_Config')) $CFG = new MX_Config;
     if (@(!is_a($LANG, 'MX_Lang'))) {
         $LANG = new MX_Lang();
     }
     if (@(!is_a($CFG, 'MX_Config'))) {
         $CFG = new MX_Config();
     }
     //
 }
예제 #9
0
 public function __construct()
 {
     /* assign the application instance */
     self::$APP = CI_Controller::get_instance();
     // Removed by Deepak Patil <*****@*****.**>, 19-NOV-2013.
     /*
     global $LANG, $CFG;
     
     // Re-assign language and config for modules.
     // Modified by Deepak Patil <*****@*****.**>, 21-OCT-2013.
     //if ( ! is_a($LANG, 'MX_Lang')) $LANG = new MX_Lang;
     //if ( ! is_a($CFG, 'MX_Config')) $CFG = new MX_Config;
     if ( @ ! is_a($LANG, 'MX_Lang')) $LANG = new MX_Lang;
     if ( @ ! is_a($CFG, 'Core_Config')) $CFG = new Core_Config;
     //
     */
 }
예제 #10
0
파일: Ci.php 프로젝트: thomasgroch/quiz
 public function __construct()
 {
     /* assign the application instance */
     self::$APP = CI_Controller::get_instance();
     global $LANG, $CFG;
     /* re-assign language and config for modules */
     if (!is_a($LANG, 'MX_Lang')) {
         $LANG = new MX_Lang();
     }
     if (!is_a($CFG, 'MX_Config')) {
         $CFG = new MX_Config();
     }
     /* assign the core loader */
     self::$APP->load = new MX_Loader();
     /* autoload module items */
     self::$APP->load->_autoloader(array());
 }
예제 #11
0
 public function __construct()
 {
     /* assign the application instance */
     self::$APP = $this;
     // Removed by Ivan Tcholakov, 19-NOV-2013.
     /*
     global $LANG, $CFG;
     
     // Re-assign language and config for modules.
     // Modified by Ivan Tcholakov, 21-OCT-2013.
     //if ( ! is_a($LANG, 'MX_Lang')) $LANG = new MX_Lang;
     //if ( ! is_a($CFG, 'MX_Config')) $CFG = new MX_Config;
     if ( @ ! is_a($LANG, 'MX_Lang')) $LANG = new MX_Lang;
     if ( @ ! is_a($CFG, 'Core_Config')) $CFG = new Core_Config;
     //
     */
     parent::__construct();
 }
예제 #12
0
파일: Base.php 프로젝트: unisexx/adf16
 public function __construct()
 {
     parent::__construct();
     /* assign the application instance */
     self::$APP = CI_Base::get_instance();
     /* assign the core classes */
     $classes = CI_VERSION < 2 ? array('config' => 'Config', 'input' => 'Input', 'benchmark' => 'Benchmark', 'uri' => 'URI', 'output' => 'Output', 'lang' => 'Language', 'router' => 'Router') : is_loaded();
     foreach ($classes as $key => $class) {
         $this->{$key} = load_class($class);
     }
     /* assign the core loader */
     $this->load = load_class('Loader', 'core');
     /* autoload application items */
     $this->load->_ci_autoloader();
     /* re-assign language and config for modules */
     if (!is_a($this->lang, 'MX_Lang')) {
         $this->lang = new MX_Lang();
     }
     // if ( ! is_a($this->config, 'MX_Config')) $this->config = new MX_Config;
 }
예제 #13
0
 public function __construct()
 {
     parent::__construct();
     /* assign the application instance */
     self::$APP = CI_Base::get_instance();
     /* assign the core loader */
     $this->load = new CI_Loader();
     /* use modular config and language */
     $this->config = new MX_Config();
     $this->lang = new MX_Language();
     /* the core classes */
     $classes = array('input' => 'Input', 'benchmark' => 'Benchmark', 'uri' => 'URI', 'output' => 'Output', 'router' => 'Router');
     /* assign the core classes */
     foreach ($classes as $key => $class) {
         $this->{$key} = load_class($class);
     }
     /* autoload application items */
     $this->load->_ci_autoloader();
     /* re-assign the core loader to use modules */
     $this->load = class_exists('MX_Loader', FALSE) ? new MX_Loader() : new Loader();
 }
예제 #14
0
파일: Base.php 프로젝트: hqye/stblog
 public function __construct()
 {
     parent::__construct();
     /* assign the application instance */
     self::$APP = CI_Base::get_instance();
     /* assign the core classes */
     $classes = is_loaded();
     foreach ($classes as $key => $class) {
         $this->{$key} = load_class($class);
     }
     /* assign the core loader */
     $this->load = load_class('Loader', 'core');
     /* re-assign language and config for modules */
     if (!is_a($this->lang, 'MX_Lang')) {
         $this->lang = new MX_Lang();
     }
     if (!is_a($this->config, 'MX_Config')) {
         $this->config = new MX_Config();
     }
     /* autoload application items */
     $this->load->_ci_autoloader();
 }
예제 #15
0
파일: Ci.php 프로젝트: RCMmedia/rubicon
 public function __construct()
 {
     /* assign the application instance */
     self::$APP = CI_Controller::ci_get_instance();
 }
예제 #16
0
 public static function getInstance()
 {
     is_a(self::$APP, __CLASS__) or self::$APP = new CI();
     return self::$APP;
 }
예제 #17
0
파일: Base.php 프로젝트: RCMmedia/rubicon
 public function __construct()
 {
     /* assign the application instance */
     self::$APP = $this;
     parent::__construct();
 }