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


PHP XString::convertArrayToGbk方法代码示例

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


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

示例1: ajaxSendMessageNfs

 public function ajaxSendMessageNfs($request, $response)
 {
     /*{{{*/
     $msgInfos = $_POST['msginfo'];
     $msgInfos = XString::convertArrayToGbk($msgInfos);
     $phoneNums = $msgInfos['phonenum'];
     $patientNames = $msgInfos['patientname'];
     $doctorNames = $msgInfos['doctorname'];
     $contents = $msgInfos['content'];
     $data = array();
     foreach ($phoneNums as $key => $value) {
         $phoneNum = $value;
         $patientName = $patientNames[$key];
         $doctorName = $doctorNames[$key];
         $content = $contents[$key];
         $preg1 = '/{?\\$data\\[(\'|\\"){1}(patientname){1}(\'|\\"){1}\\]}?/';
         $preg2 = '/{?\\$data\\[(\'|\\"){1}|(doctorname){1}(\'|\\"){1}\\]}?/';
         $content = preg_replace($preg1, $patientName, $content);
         $content = preg_replace($preg2, $doctorName, $content);
         SMSClient::getInstance()->sendSMS(array($phoneNum), $content, SMSLog::OPT_TYPE_FULLOWUP, '', SMSMD::EXT_8);
     }
     //有时会先执行下面writeMessageSendLog中的sql,再执行上面sendSMS的sql,这样会有逻辑错误。暂时sleep一下处理
     sleep(1);
     FollowupClient::getInstance()->writeMessageSendLog($phoneNums, $request->contenttype, $request->msgtemplateid, $this->auditor);
     echo "success";
     return parent::DIRECT_OUTPUT;
 }
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:27,代码来源:messagecontroller.php

示例2: ajaxSetUpdateSession

 private function ajaxSetUpdateSession($request, $response)
 {/*{{{*/
     if (!session_id())
     {
         session_start();
     }
     $intentionInfos = $request->intentionInfos;
     $params = array();
     foreach ($intentionInfos as $key => $intentionInfo)
     {
         foreach ($intentionInfo as $type => $value)
         {
            DBC::requireFalse($type == 'diseaseInfos' && $value['diseaseName'] == "", "疾病信息不能为空");
            $_SESSION['askUpdateMemory'][$request->intentionid][$type][$key] = XString::convertArrayToGbk($value);
         }
     }
 }/*}}}*/
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:17,代码来源:newcasecontroller.php

示例3: createPatientCourse

 private function createPatientCourse($patientCase, $request)
 {
     /*{{{*/
     $courseType = XString::convertToGbk($request->courseType);
     $courseMark = XString::convertToGbk($request->courseMark);
     $courseDetails = XString::convertArrayToGbk($request->courseDetails);
     $courseSummary = md5($patientCase->doctorOwner->id . XString::convertToGbk($request->name) . time());
     $patientCourseAsyncDto = PatientCourseAsyncDto::create($patientCase, $courseType, $courseSummary, $request->courseOccurDate, $courseMark, $courseDetails, 'INSPECTOR');
     $patientCourseInfos = PatientCourseClient::getInstance()->createPatientCourseWithContent($patientCourseAsyncDto);
     $patientCourse = new NullEntity();
     if (isset($patientCourseInfos['courseId']) && $patientCourseInfos['courseId']) {
         $patientCourse = DAL::get()->find('patientcourse', $patientCourseInfos['courseId']);
         PatientCourseClient::getInstance()->setPatientCoursePass($this->curInspector, $patientCourse);
     }
     return $patientCourse;
 }
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:16,代码来源:outpatienttoolcontroller.php


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