...elf::$_charset = $xs->getDefaultCharset(); // constants if (!defined('SCWS_MULTI_NONE')) { define('SCWS_MULTI_NONE', 0); define('SCWS_MULTI_SHORT', 1); define('SCWS_MULTI_DUALITY', 2); define('SCWS_MULTI_ZMAIN', 4); define('SCWS_MU...
...elf::$_charset = $xs->getDefaultCharset(); // constants if (!defined('SCWS_MULTI_NONE')) { define('SCWS_MULTI_NONE', 0); define('SCWS_MULTI_SHORT', 1); define('SCWS_MULTI_DUALITY', 2); define('SCWS_MULTI_ZMAIN', 4); define('SCWS_MU...
...env('XS_APP_ROOT'); if ($appRoot === false) { $appRoot = defined('XS_APP_ROOT') ? XS_APP_ROOT : dirname(__FILE__) . '/../app'; } return $appRoot . '/' . $project . '.ini'; } else { return $project; }} 将项目参数转换为有效的 ini 文件
...env('XS_APP_ROOT'); if ($appRoot === false) { $appRoot = defined('XS_APP_ROOT') ? XS_APP_ROOT : XS_LIB_ROOT . '/../app'; } $file2 = $appRoot . '/' . $file . '.ini'; if (is_file($file2)) { $file = $file2; } } $this->loadIniFile($file); ...
...env('XS_APP_ROOT'); if ($appRoot === false) { $appRoot = defined('XS_APP_ROOT') ? XS_APP_ROOT : XS_LIB_ROOT . '/../app'; } $file2 = $appRoot . '/' . $file . '.ini'; if (is_file($file2)) { $file = $file2; } } $this->loadIniFile($file); ...
...env('XS_APP_ROOT'); if ($appRoot === false) { $appRoot = defined('XS_APP_ROOT') ? XS_APP_ROOT : dirname(__FILE__) . '/../app'; } return $appRoot . '/' . $project . '.ini'; } else { return $project; }} 将项目参数转换为有效的 ini 文件
...{ $predef = 'self::TYPE_' . strtoupper($config['type']); if (defined($predef)) { $this->type = constant($predef); if ($this->type == self::TYPE_ID) { $this->flag = self::FLAG_INDEX_SELF; $this->tokenizer = 'full'; } elseif ...