public static function &instance() { if (null === self::$instance) { self::$instance = new self(); } return self::$instance; }
/** * 语言文件处理 * * @param string $language * @param array $pars * @param string $applications * @return string */ function L($language = 'NO_LANG', $pars = array(), $applications = '') { static $lang = null; if (is_null($lang)) { $lang = Base_Lang::instance(); } return $lang->load($language, $pars, $applications); }