获取处理器类

@return string
347556
public function getParserClass()
    {
        $server = RequestContext::getServer();
        if($server instanceof \Imi\Server\WebSocket\Server)
        {
            return ConnectContext::get('httpRouteResult')['wsConfig']->parserClass ?? JsonObjectParser::class;
        }
        else if($server instanceof \Imi\Server\TcpServer\Server || $server instanceof \Imi\Server\UdpServer\Server)
        {
            return $server->getConfig()['dataParser'] ?? JsonObjectParser::class;
        }
        else
        {
            return JsonObjectParser::class;
        }
    }
19635
public function getCode() : ?string 
    {
        if ( ! $this->hasCode()) {
            $this->setCode($this->getDefaultCode());
        }
        return $this->code;
    }
354408
public function makeSign()
    {
        //签名步骤一：按字典序排序参数
        ksort($this->values);
        $string = $this->ToUrlParams();
        //签名步骤二：在string后加入KEY
        $string = $string . "&key=".Config::getKEY();
        //签名步骤三：MD5加密
        $string = md5($string);
        //签名步骤四：所有字符转为大写
        $result = strtoupper($string);
        return $result;
    }
1025992
public function getSeoUri()
    {
        if ( ! empty( $this->_seoUri ) )
        {
            return $this->_seoUri;
        }

        if ( empty( $this->id ) )
        {
            return '';
        }

        if ( empty( $this->_seoUri ) )
        {
            $this->_seoUriStructure = $this->getUriStructure( array(
                $this->getMapper()
                     ->getLocale()
            ) );

            if ( ! empty( $this->_seoUriStructure ) )
            {
                $this->_seoUri = $this->_seoUriStructure->uri;
            }
        }

        return $this->_seoUri;
    }
356645
public function getText()
    {
        if (!$this->text) {
            $this->text = '';
            for ($i = 0; $i < $this->macLength; $i++) {
                $this->text .= strtolower($this->macChars{rand(0, strlen($this->macChars) - 1)});
            }
        }

        return $this->text;
    }
910571
public function getHeadersAsString()
    {
        $headerString = '';
        foreach ($this->getHeaders() as $name => $header) {
            // build up a header string
            $headerString .= $name . ': ' . $header . PHP_EOL;
        }

        return $headerString;
    }
979069
public function toString()
    {
        $authorization = array();
        $authorization['code'] = $this->code;
        $authorization['reference'] = $this->reference;
        return "Authorization: " . implode(' - ', $authorization);
    }
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;
    }
1235957
public function toString()
    {
        $credentials = array();
        $credentials['AppID'] = $this->appId;
        $credentials['AppKey'] = $this->appKey;
        $credentials['AuthorizationCode'] = $this->appKey;
        return implode(' - ', $credentials);
    }
1130796
protected function get()
    {
        $c               = $this->lookAhead;
        $this->lookAhead = null;
        if ($c === null) {
            if ($this->inputIndex < $this->inputLength) {
                $c = $this->input[$this->inputIndex];
                $this->inputIndex += 1;
            } else {
                return;
            }
        }
        if ($c === "\r" || $c === "\n") {
            return "\n";
        }
        if (ord($c) < self::ORD_SPACE) {
            return ' ';
        }
        return $c;
    }
57662
public function toString()
    {
        $string = '';
        $headers = $this->headers;
        if ($this->canSort()) {
            uksort($headers, [$this, 'sortHeaders']);
        }
        foreach ($headers as $collection) {
            foreach ($collection as $header) {
                if ($this->isDisplayed($header) || '' != $header->getFieldBody()) {
                    $string .= $header->toString();
                }
            }
        }

        return $string;
    }
979704
public function getData()
    {
        $this->validate('orderId', 'txnTime', 'accNo', 'payTimeout');

        $data = array(
            'version'       => $this->getVersion(),  //版本号
            'encoding'      => $this->getEncoding(),  //编码方式
            'certId'        => $this->getTheCertId(),    //证书ID
            'signMethod'    => $this->getSignMethod(),  //签名方法
            'txnType'       => '79',        //交易类型
            'txnSubType'    => '00',        //交易子类
            '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&tokenType=01}', $this->getTrId()), //标记请求者 trId
            'accNo'         => $this->encrypt($this->getAccNo()), //银行卡号
            'customerInfo'  => $this->getEncryptCustomerInfo(), //标记请求者 trId,
            'frontUrl'      => $this->getReturnUrl(), //前台通知地址
            'backUrl'       => $this->getNotifyUrl(), //后台通知地址
            'payTimeout'    => $this->getPayTimeout(), //订单超时时间
        );

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

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

        return $data;
    }
1107888
public function toString() {

		$country	= isset( $this->countryName ) ? $this->countryName : $this->country->name;
		$province	= isset( $this->provinceName ) ? $this->provinceName : $this->province->name;
		$region		= isset( $this->regionName ) ? $this->regionName : ( isset( $this->region ) ? $this->region->name : null );
		$address	= $this->line1;

		if( !empty( $this->line2 ) ) {

			$address .= ", $this->line2";
		}

		if( !empty( $this->line3 ) ) {

			$address .= ", $this->line3";
		}

		if( !empty( $this->cityName ) ) {

			$address .= ", $this->cityName";
		}

		if( !empty( $this->zip ) ) {

			$address .= ", $this->zip";
		}

		if( !empty( $region ) ) {

			$address .= ", $region";
		}

		$address .= ", $province, $country";
		//$address .= ", $this->zip";

		return $address;
	}
395896
public function getTitleView(): string
    {
        if ($this->help) {
            $help_box_id = 'column_' . $this->key . '_hint_box';
            if ($this->help_href) {
                $help_title = '<a href="' . $this->help_href . '"' . ($this->help_href_new_window ? ' target="_blank"' : '') . '>?</a>';
            } else {
                $help_title = '<span onmouseover="HintHelp.show(\'' . $help_box_id . '\', \'' . htmlspecialchars($this->help_text, ENT_QUOTES) . '\', event)" onmouseout="HintHelp.hide(\'' . $help_box_id . '\')">?</span>';
            }
            $help_html = '&nbsp;<sup style="cursor: pointer; position: relative;" id="' . $help_box_id . '">' . $help_title . '</sup>';
        } else {
            $help_html = '';
        }

        if ($this->sql_order_by) {
            if ($this->sql_order_by_direction) {
                $order_by_direction = '&nbsp;<small>' . ($this->sql_order_by_direction === 'asc' ? '▲' : '▼') . '</small>';
            } elseif (isset($this->sql_order_by_direction_default)) {
                $order_by_direction = '&nbsp;<small>' . ($this->sql_order_by_direction_default === 'asc' ? '▲' : '▼') . '</small>';
            }

            $order_by_url = Linker::makeUrl(array_merge($_GET, ['order_by' => $this->key . '-' . ($this->sql_order_by_direction === 'asc' ? 'desc' : 'asc')]));
        } else {
            $order_by_url = '';
        }

        return '<span style="font-weight:700">'
            . ($order_by_url ? '<a href="' . $order_by_url . '">' : '')
            . __($this->getTitle()) . ($order_by_url ? '</a>' : '')
            . ($order_by_direction ?? '')
            . '</span>'
            . $help_html;
    }
35474
public function serialize(): ?string {
        $arr['#'] = static::version();
        $count = -1;
        foreach ($this->iterate(true) as $key => $value) {
            $count++;
            // 跳过弃用
            if (static::isKeyDeprecated($key)) {
                continue;
            }
            if ($value instanceof \Serializable) {
                $arr[$count] = serialize($value);
            } else {
                $arr[$count] = $value;
            }
        }
        return static::_pack($arr);
    }
1281400
protected function getDeleteStatement(): string
    {
        $statement = '';
        if (!$this->isDelete()) {
            return $statement;
        }

        // delete语句
        $statement .= $this->getDeleteString();

        // from语句
        if ($this->builder->getFrom()) {
            $statement .= ' ' . $this->getFromString();
        }

        // where语句
        if ($this->builder->getWhere()) {
            $statement .= ' ' . $this->getWhereString();
        }

        // orderBy语句
        if ($this->builder->getOrderBy()) {
            $statement .= ' ' . $this->getOrderByString();
        }

        // limit语句
        if ($this->builder->getLimit()) {
            $statement .= ' ' . $this->getLimitString();
        }

        return $statement;
    }
1216271
public function getData()
    {
        $this->validate('txnTime', 'orderId', 'trId');

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

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

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

        var_dump($data);

        return $data;
    }