Beispiel #1
0
 /**
  * 获取实例
  * @access public
  * @param bool $isCommandLine 是否为命令行模式? 默认为 FALSE
  * @param bool $is_compile_model 是否编译框架代码再运行?默认为TRUE
  * @return XF_Application
  */
 public static function getInstance($isCommandLine = FALSE, $is_compile_model = TRUE)
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
         self::$_instance->_init($isCommandLine, $is_compile_model);
     }
     return self::$_instance;
 }