当前位置: 首页>>代码示例>>PHP>>正文


PHP XString::convertCharacterSet方法代码示例

本文整理汇总了PHP中XString::convertCharacterSet方法的典型用法代码示例。如果您正苦于以下问题:PHP XString::convertCharacterSet方法的具体用法?PHP XString::convertCharacterSet怎么用?PHP XString::convertCharacterSet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XString的用法示例。


在下文中一共展示了XString::convertCharacterSet方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: updateVisitEvaluate

    public function updateVisitEvaluate($request, $response)
    {/*{{{*/
        $telOrder = DAL::get()->find('telOrder', $request->telOrderId);
        $proposal = DAL::get()->find('proposal', $request->proposalId);
        //检查订单所有者是否当前用户
        $this->checkOrderOwnerIsCurUser($telOrder);

        $telOrderId = $request->telOrderId;
        $score = $request->score;
        $score1 = $request->score1;
        $score = empty($score)?$score1:$score;
        $content = XString::convertCharacterSet($request->content, 'gbk');
        $curuser = UserClient::getInstance()->getCurrentUser();
        TelOrderClient::getInstance()->updateVisitEvaluate($curuser, $telOrderId, array('score'=>$score, 'content'=>$content, 'rank'=>0, 'mark'=>'pro'));
        $response->setRedirect($response->router->urlfor('proposal/showdetail', array('proposalid'=>$proposal->id)));
    }/*}}}*/
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:16,代码来源:telpaymentcontroller.php

示例2: ajaxOrderDiseaseInfo

    public function ajaxOrderDiseaseInfo($request, $response)
    {/*{{{*/
        $orderId = $request->orderid; 
        $order = DAL::get()->find('telorder', $orderId);
        if($order->isNull())
        {
			die('无效的订单ID');
        }
        $response->order = $order;
        $doctorUser = DAL::get()->find('user', $order->executer->relatedObject->id);
        $doctorId = $doctorUser->space->host->id;
        $diseasesOfDoctor = DoctorClient::getInstance()->getDiseasesOfDoctor($doctorId); 
        $response->diseasesOfDoctor = $diseasesOfDoctor;
		$diseaseList = array();
        $diseaseName =  XString::convertCharacterSet($request->diseasename, 'gbk');
        if(false == empty($diseaseName))
        {
            $diseaseList = DAL::get()->find_all_similarDiseaseLimitName('disease', $diseaseName, array('isVoteSelf' => array(1)));
        }
        $response->diseaseList = $diseaseList;
        $response->diseaseName = $request->diseaseName;
        //取当前订单医生已审核订单绑定的疾病 wk
        $bindsOrders = PaymentClient::getInstance()->getBindsOrdersOfDoctor('telorder', $order->executerid, array(TelOrder::STATUS_CONFIRM, TelOrder::STATUS_FINISHED, TelOrder::STATUS_CLOSED));
        $allDiseaseIdsOfConfirmOrder = array();
        foreach($bindsOrders as $result)
        {
            if(empty($result['diseaseid'])) continue;
            $allDiseaseIdsOfConfirmOrder[] = $result['diseaseid'];
        }
        $diseasesOfConfirmOrder = DAL::get()->find('disease', $allDiseaseIdsOfConfirmOrder);
        foreach($diseasesOfConfirmOrder as $disease)
        {
            if(Disease::ISVOTESELF_NO == $disease->isVoteSelf)
            {
                unset($diseasesOfConfirmOrder[$disease->id]);
            }
        }
        //当前订单咨询的大夫的所有投票疾病 wk
        $response->diseases = $diseasesOfConfirmOrder;
    }/*}}}*/
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:40,代码来源:telordercontroller.php


注:本文中的XString::convertCharacterSet方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。