Example #1
0
File: Lang.php Project: hubs/yuncms
 public static function &instance()
 {
     if (null === self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Example #2
0
File: func.php Project: hubs/yuncms
/**
 * 语言文件处理
 *
 * @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);
}