获取语言定义
@access public
@param  string|null $name 语言变量
@param  array $vars 变量替换
@param  string $range 语言作用域
@return mixed
4397
public function get($string = null, $range = '') {
        if($range) {
            $value = isset($this->range[$range][$string]) ? $this->range[$range][$string] : $string;
        }
        else {
            $value = isset($this->lang[$string]) ? $this->lang[$string] : $string;
        }

        return $value;
    }
877474
public function get($name = ''){
            if(false === $var = apc_fetch($name)){
                apc_store($name, $var = parent::get($name));
            }

            return $var;
        }
1328988
private function _get(string $name)
	{
		global ${$this->_sGlobal};

		# EXIT
		if(!isset(${$this->_sGlobal}[$name])) return null;

		/** @var mixed $var */
		$var = ${$this->_sGlobal}[$name];
		if(!is_array($var)) { $var = [$var]; }

		foreach ($var as $k => $v) {
			# INNER FILTER
			if($this->_iSpecialFilterType) {
				switch ($this->_iSpecialFilterType) {
					case self::FILTER_OCTAL:
						$var[$k] = octdec($v);
						break;
				}
			}
			# FILTER
			elseif($this->_iFilterType) {
				$var[$k] = filter_var($v, $this->_iFilterType);
			}
			# AUTO
			else {
				$var[$k] = $this->_bFilter ? $this->_autoFilter($v) : $v;
			}
		}

		$this->_iSpecialFilterType = 0;
		$this->_iFilterType = 0;
		return $var;
	}
122345
public function lang($name, $vars = [], $template = self::USE_NOT_TPL) {
        $request = Request::instance();
        $config = $this->resolve(RESOLVE_LANG, $name);
        $name = $config[1];
        $config = $config[0];

        if (isset($config[$request->lang][$name])) {
            if ($template == self::USE_NOT_TPL) {
                if (count($vars) == 0) {
                    return $config[$request->lang][$name];
                }
                else {
                    $content = $config[$request->lang][$name];

                    foreach ($vars as $key => $value) {
                        $content = preg_replace('#\{' . $key . '\}#isU', $value, $content);
                    }

                    return $content;
                }
            }
            else {
                $tpl = new Template($config[$request->lang][$name], $name, 0, Template::TPL_STRING);
                $tpl->assign($vars);

                return $tpl->show(Template::TPL_COMPILE_TO_STRING, Template::TPL_COMPILE_LANG);
            }
        }
        else {
            $this->addError('sentence ' . $name . '/' . $request->lang . ' not found', __FILE__, __LINE__, ERROR_WARNING);

            return 'sentence not found (' . $name . ',' . $request->lang . ')';
        }
    }
713434
public function has($name, $range = '') {
        $range = $range ?: $this->range;

        return isset($this->lang[$range][$name]);
    }
823810
protected function getSqlQuery($name, array $vars = array())
    {
        $sql = $this->sqlQueries[$name];
        $vars = array_merge(array('tablename' => $this->tableName), $vars);
        foreach ($vars as $k => $v) {
            $sql = str_replace("%$k%", $v, $sql);
        }
        return $sql;
    }
116731
public static function lang($name, $vars = [], $lang = '')
    {
        if (function_exists('lang')) {
            return lang($name, $vars, $lang);
        }

        return $name;
    }
763056
public function parseVarFunction($name,$varArray){
        //对变量使用函数
        $length = count($varArray);
        //取得模板禁止使用函数列表
        $template_deny_funs = explode(',',C('TMPL_DENY_FUNC_LIST'));
        for($i=0;$i<$length ;$i++ ){
            $args = explode('=',$varArray[$i],2);
            //模板函数过滤
            $fun = trim($args[0]);
            switch($fun) {
            case 'default':  // 特殊模板函数
                $name = '(isset('.$name.') && ('.$name.' !== ""))?('.$name.'):'.$args[1];
                break;
            default:  // 通用模板函数
                if(!in_array($fun,$template_deny_funs)){
                    if(isset($args[1])){
                        if(strstr($args[1],'###')){
                            $args[1] = str_replace('###',$name,$args[1]);
                            $name = "$fun($args[1])";
                        }else{
                            $name = "$fun($name,$args[1])";
                        }
                    }else if(!empty($args[0])){
                        $name = "$fun($name)";
                    }
                }
            }
        }
        return $name;
    }
1155801
public function get($table, $hash, $range = null, Context\Get $context = null)
    {
        if (null !== $this->logger) {
            $this->log('Get on table '.$table);
        }

        // Primary key
        $hash = new Attribute($hash);

        $parameters = array(
            'TableName' => $table,
            'Key'       => array(
                'HashKeyElement' => $hash->getForDynamoDB()
            )
        );

        // Range key
        if (null !== $range) {
            $range = new Attribute($range);
            $parameters['Key']['RangeKeyElement'] = $range->getForDynamoDB();
        }

        if (null !== $context) {
            $parameters += $context->getForDynamoDB();
        }

        if (null !== $this->logger) {
            $this->log('Get request paramaters : '.print_r($parameters, true), Logger::DEBUG);
        }

        $response = $this->connector->getItem($parameters);

        if (null !== $this->logger) {
            $this->log('Get request response : '.print_r($response, true), Logger::DEBUG);
        }

        $this->addConsumedReadUnits($table, floatval($response['ConsumedCapacityUnits']));

        if (isset($response['Item'])) {
            $item = new Item($table);
            $item->populateFromDynamoDB($response['Item']);
            return $item;
        } else {
            if (null !== $this->logger) {
                $this->log('Didn\'t find item');
            }
            return null;
        }
    }
59503
public function delVar($name)
    {
        if (array_key_exists($name, $this->vars)) {
            unset($this->vars[$name]);

            // Empty the query
            $this->query = null;
        }
    }
1264111
public static function setDefault($name, $value = null, $range = null)
    {
        return static::set($name, $value, $range, false);
    }
1134829
public function loadPartial($name, array $vars = array())
    {
        $partialTemplateFile = $this->getPartialBag()->getPartialFile($name);

        if (is_file($partialTemplateFile)) {
            extract(array_replace_recursive($vars, $this->variables));
            include($partialTemplateFile);
        } else {
            return false;
        }
    }
907696
public function row($vars = '', $cells = '')
    {
        $html = $this->wrapUp('row')."\n\t";
        $this->body = true;
        $this->vars = (!empty($cells)) ? $this->values($cells) : array();

        return $html.$this->page->tag('tr', $this->values($vars));
    }
799208
public static function get($name,$values=null)
    {
        if(strstr($name,'.')===false){
            return isset(self::$config[$name]) ? self::$config[$name] : $values;
        }else{
            $list=explode('.',$name);
            $config=self::$config;
            // 循环读取
            foreach ($list as $key) {
                // 判断是否存在,不存在直接返回默认值
                if(isset($config[$key])){
                    $config=$config[$key];
                }else{
                    return $values;
                }
            }
            return $config;
        }
    }
597053
public function selectRange($name, $begin, $end, $selected = null, $options = array())
    {

        $range = array_combine($range = range($begin, $end), $range);

        return $this->select($name, $range, $selected, $options);
    }
35911
protected function makeSessionVarName($name = null)
    {
        return $this->config('session_var').(is_null($name) || empty($name) ? '' : '.'.$name);
    }
489342
public static function fromString($range)
    {
        $result = null;
        $address = Factory::addressFromString($range);
        if ($address !== null) {
            $result = new static($address);
        }

        return $result;
    }