當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。