编译模板资源
@return mixed
558823
public function compileTemplateSource()
    {
        $source = $this->getSource();
        $this->addDependency($source);
        return $this->getCompiler()->compileTemplate();
    }
758627
public function getTable()
    {
        if ($this->_sql['from']) {
            $table = $this->_sql['from'];
        } else {
            $table = $this->table;
        }
        /**
         * 处理子查询问题
         * 子查询使用()包裹
         */
        if (strpos($table, ')') !== false && strpos($table, '(') !== false) {
            return $table;
        }
        $table = $this->prefix . $table;
        return $this->formatTable($table);
    }
1136382
public function query()
    {
        $model       = $this->model;

        $this->query = $model->select($this->select)
                            ->where($this->where)
                            ->orderBy($this->orderBy, $this->sortBy)
                            ->take($this->num)
                            ->offset($this->offset);

        $this->sql   = $this->query->getQuery()->toSql();

        $this->data  = $this->query->get()->toArray();

        return $this->data;
    }
122118
public function get_value() {
		$data  = $this->get_data();
		$value = null;
		if ( null !== $data && null !== $data[ $this->slug ] ) {
			$value = $data[ $this->slug ];
		}

		return $value;
	}
990417
public function getPublicKey()
    {
        /** @var string $cacheKey */
        if(empty($this->_publicKey) && !empty($this->jwkUrl))
        {
            if(Yii::$app->cache)
            {
                $cacheKey = "JWK_".sha1($this->jwkUrl);
                $jwk = Yii::$app->cache->get($cacheKey);
            }

            if(empty($jwk))
            {
                $res = $this->createRequest()
                    ->setMethod('GET')
                    ->setUrl($this->jwkUrl)
                    ->send();
                if(!empty($res)) {
                    $jwk = $res->getContent();
                    if(!empty($jwk) && Yii::$app->cache)
                        Yii::$app->cache->set($cacheKey, $jwk, self::PUBLIC_KEY_EXPIRE_DURATION);
                } else {
                    throw new UnauthorizedHttpException("Can\'t get public key");
                }
            }
            if(!empty($jwk))
                $this->_publicKey = JWK::parseKeySet($jwk);
        }
        return $this->_publicKey;
    }
726189
public function get()
    {
        $inputResult = $this->getRequest()->request(
            'GET',
            $this->getRequestUrl('inputs')
        );

        return $this->getInputsFromResult($inputResult);
    }
559174
public function getValue()
	{
		$input = $this->getInput();

		$name = $this->name;

		if ($input->getString($name))
		{
			return $input->getString($name);
		}

		foreach ($this->alias as $alias)
		{
			if ($input->getString($alias))
			{
				return $input->getString($alias);
			}
		}

		return $this->default;
	}
106949
public function parse()
    {
        if (!$this->checkToken()) {
            return $this->parseRet = array('code' => -1, 'message' => 'Token不正确');
        }

        $attrs = $this->xmlToArray($this->postData);
        if ($this->isEncrypted()) {
            $ret = $this->decryptMsg($attrs['Encrypt']);
            if ($ret['code'] !== 1) {
                return $this->parseRet = $ret;
            }
            $attrs = $this->xmlToArray($ret['xml']);
        }

        $this->attrs = $attrs;
        return $this->parseRet = array('code' => 1, 'message' => '解析成功');
    }
327654
protected function getSelectString(): string
    {
        $statement = '';
        $fieldSelect    = $this->builder->getSelect();
        $aggregate = $this->builder->getAggregate();
        if (empty($fieldSelect) && empty($aggregate)) {
            return $statement;
        }

        $select = $this->getAggregateStatement($fieldSelect, $aggregate);

        // 字段组拼
        foreach ($select as $column => $alias) {
            // Filter db keyword
            if (array_key_exists($column, $fieldSelect) && trim($column) != '*' && strpos($column, '.') === false) {
                // 判断是否为函数调用
                if (strpos($column, '(') || strpos($column, ')')) {
                    $column = sprintf('%s', $column);
                } else {
                    $column = sprintf('`%s`', $column);
                }
            }

            $statement .= $column;
            if ($alias !== null) {
                $statement .= sprintf(' AS `%s`', $alias);
            }
            $statement .= ', ';
        }

        //select组拼
        $statement = substr($statement, 0, -2);
        if (!empty($statement)) {
            $statement = 'SELECT ' . $statement;
        }

        return $statement;
    }
780127
public function getData()
    {
        $tmp = $this->data;
        foreach (func_get_args() as $arg) {
            if (is_array($tmp) && isset($tmp[$arg])) {
                $tmp = $tmp[$arg];
            } else {
                return '';
            }
        }
        
        return $tmp;
    }
696018
public function getValue()
    {
        $value = $this->value;
        if (is_null($value)) {
            $value = $this->getField('Value');
        }
        $this->value = is_string($value) ? $this->unserializeData($value) : $value;
        return $this->value;
    }
901004
public function getGroup()
    {
        $this->group || $this->group = wei()->group()->findOrInitById($this['groupId'], ['name' => '未分组']);

        return $this->group;
    }
12131
public function getValue()
    {
        if ($this->_value < 10) {
            return '0.0' . $this->_value;
        } elseif ($this->_value < 100) {
            return '0.' . $this->_value;
        } else {
            return substr($this->_value, 0, -2) . '.' . substr($this->_value, -2);
        }
    }
598660
public function get_value() {
		$data = $this->get_data();
		if ( isset( $data[ $this->slug ] ) ) {
			$data = $data[ $this->slug ];
		}

		return $data;
	}
804575
public function getData()
    {
        $this->validate('orderId', 'txnTime', 'trId', 'token');

        $data = array(
            'version'       => $this->getVersion(),  //版本号
            'encoding'      => $this->getEncoding(),  //编码方式
            'certId'        => $this->getTheCertId(),    //证书ID
            'signMethod'    => $this->getSignMethod(),  //签名方法
            'txnType'       => '74',        //交易类型
            'txnSubType'    => '01',        //交易子类
            'bizType'       => '000902',    //业务类型
            'accessType'    => $this->getAccessType(),         //接入类型
            'channelType'   => $this->getChannelType(), //05:语音 07:互联网 08:移动
            'encryptCertId' => CertUtil::readX509CertId($this->getEncryptKey()),
            'merId'         => $this->getMerId(),     //商户代码
            'orderId'       => $this->getOrderId(),     //商户订单号，填写开通并支付交易的orderId
            'txnTime'       => $this->getTxnTime(),    //订单发送时间
            'tokenPayData'  => sprintf('{trId=%s&token=%s}', $this->getTrId(), $this->getToken())
        );

        $data = $this->filter($data);

        $data['signature'] = $this->sign($data, 'RSA2');

        return $data;
    }
553222
public function getUserId()
    {
        if (null === $this->userId && null !== $this->user) {
            $this->userId = $this->user->id;
        }

        return $this->userId;
    }
1075559
public function get()
	{
		$view = $this->getView();

		try
		{
			$total = 0;
			$params = $this->storeSearchParams( $view->param( 'uo', [] ), 'customerorder' );
			$orderItems = $this->getOrderItems( $view->item, $params, $total );
			$baseItems = $this->getOrderBaseItems( $orderItems );

			$view->orderItems = $orderItems;
			$view->orderBaseItems = $baseItems;
			$view->orderTotal = $total;
			$view->orderBody = '';

			foreach( $this->getSubClients() as $client ) {
				$view->orderBody .= $client->search();
			}
		}
		catch( \Aimeos\MShop\Exception $e )
		{
			$error = array( 'customer-order' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) );
			$view->errors = $view->get( 'errors', [] ) + $error;
			$this->logException( $e );
		}
		catch( \Exception $e )
		{
			$error = array( 'customer-order' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() );
			$view->errors = $view->get( 'errors', [] ) + $error;
			$this->logException( $e );
		}

		return $this->render( $view );
	}