當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CommonFunctions::escapeHTML方法代碼示例

本文整理匯總了PHP中CommonFunctions::escapeHTML方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonFunctions::escapeHTML方法的具體用法?PHP CommonFunctions::escapeHTML怎麽用?PHP CommonFunctions::escapeHTML使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CommonFunctions的用法示例。


在下文中一共展示了CommonFunctions::escapeHTML方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: parseEditData


//.........這裏部分代碼省略.........
         $this->parent_empinfo->setEmpNickName(trim($postArr['txtEmpNickName']));
         $this->parent_empinfo->setEmpMiddleName(trim($postArr['txtEmpMiddleName']));
         $objectArr['EmpMain'] = $this->parent_empinfo;
     }
     //job info
     if ($postArr['jobFlag'] == '1' && !(isset($this->isESS) && $this->isESS)) {
         $postArr['txtJoinedDate'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtJoinedDate']);
         $postArr['txtTermDate'] = LocaleUtil::getInstance()->convertToStandardDateFormat($postArr['txtTermDate']);
         $this->parent_empinfo->setEmpId(trim($postArr['txtEmpID']));
         $this->parent_empinfo->setEmpJobTitle(trim($postArr['cmbJobTitle']));
         if (isset($postArr['cmbType'])) {
             $this->parent_empinfo->setEmpStatus(trim($postArr['cmbType']));
         } else {
             $this->parent_empinfo->setEmpStatus(trim($postArr['hidType']));
         }
         $this->parent_empinfo->setEmpEEOCat(trim($postArr['cmbEEOCat']));
         $this->parent_empinfo->setEmpLocation($postArr['cmbLocation']);
         $this->parent_empinfo->setEmpJoinedDate(self::_handleEmptyDates($postArr['txtJoinedDate']));
         $this->parent_empinfo->setEmpTerminatedDate(self::_handleEmptyDates($postArr['txtTermDate']));
         $this->parent_empinfo->setEmpTerminationReason($postArr['txtTermReason']);
         $objectArr['EmpJobInfo'] = $this->parent_empinfo;
     }
     if ($postArr['contactFlag'] == '1') {
         $this->parent_empinfo->setEmpId(trim($postArr['txtEmpID']));
         $this->parent_empinfo->setEmpStreet1(trim($postArr['txtStreet1']));
         $this->parent_empinfo->setEmpStreet2(trim($postArr['txtStreet2']));
         $this->parent_empinfo->setEmpCity(trim($postArr['cmbCity']));
         $this->parent_empinfo->setEmpProvince(trim($postArr['cmbProvince']));
         $this->parent_empinfo->setEmpCountry(trim($postArr['cmbCountry']));
         $this->parent_empinfo->setEmpZipCode(trim($postArr['txtzipCode']));
         $this->parent_empinfo->setEmpHomeTelephone(trim($postArr['txtHmTelep']));
         $this->parent_empinfo->setEmpMobile(trim($postArr['txtMobile']));
         $this->parent_empinfo->setEmpWorkTelephone(trim($postArr['txtWorkTelep']));
         $this->parent_empinfo->setEmpWorkEmail($postArr['txtWorkEmail']);
         $this->parent_empinfo->setEmpOtherEmail($postArr['txtOtherEmail']);
         $objectArr['EmpPermRes'] = $this->parent_empinfo;
     }
     if ($postArr['taxFlag'] == '1') {
         $taxInfo = new EmpTax();
         $taxInfo->setEmpNumber(trim($postArr['txtEmpID']));
         $federalTaxStatus = trim($postArr['cmbTaxFederalStatus']);
         if (!empty($federalTaxStatus)) {
             $taxInfo->setFederalTaxStatus($federalTaxStatus);
         }
         $taxInfo->setFederalTaxExceptions(trim($postArr['taxFederalExceptions']));
         $taxState = trim($postArr['cmbTaxState']);
         if (!empty($taxState)) {
             $taxInfo->setTaxState($taxState);
         }
         $stateTaxStatus = trim($postArr['cmbTaxStateStatus']);
         if (!empty($stateTaxStatus)) {
             $taxInfo->setStateTaxStatus($stateTaxStatus);
         }
         $taxInfo->setStateTaxExceptions(trim($postArr['taxStateExceptions']));
         $unemploymentState = trim($postArr['cmbTaxUnemploymentState']);
         if (!empty($unemploymentState)) {
             $taxInfo->setTaxUnemploymentState($unemploymentState);
         }
         $workState = trim($postArr['cmbTaxWorkState']);
         if (!empty($workState)) {
             $taxInfo->setTaxWorkState($workState);
         }
         $objectArr['EmpTaxInfo'] = $taxInfo;
     }
     if ($postArr['customFlag'] == '1') {
         $this->parent_empinfo->setEmpId(trim($postArr['txtEmpID']));
         if (isset($postArr['custom1'])) {
             $this->parent_empinfo->setCustom1(CommonFunctions::escapeHTML(trim($postArr['custom1'])));
         }
         if (isset($postArr['custom2'])) {
             $this->parent_empinfo->setCustom2(CommonFunctions::escapeHTML(trim($postArr['custom2'])));
         }
         if (isset($postArr['custom3'])) {
             $this->parent_empinfo->setCustom3(CommonFunctions::escapeHTML(trim($postArr['custom3'])));
         }
         if (isset($postArr['custom4'])) {
             $this->parent_empinfo->setCustom4(CommonFunctions::escapeHTML(trim($postArr['custom4'])));
         }
         if (isset($postArr['custom5'])) {
             $this->parent_empinfo->setCustom5(CommonFunctions::escapeHTML(trim($postArr['custom5'])));
         }
         if (isset($postArr['custom6'])) {
             $this->parent_empinfo->setCustom6(CommonFunctions::escapeHTML(trim($postArr['custom6'])));
         }
         if (isset($postArr['custom7'])) {
             $this->parent_empinfo->setCustom7(CommonFunctions::escapeHTML(trim($postArr['custom7'])));
         }
         if (isset($postArr['custom8'])) {
             $this->parent_empinfo->setCustom8(CommonFunctions::escapeHTML(trim($postArr['custom8'])));
         }
         if (isset($postArr['custom9'])) {
             $this->parent_empinfo->setCustom9(CommonFunctions::escapeHTML(trim($postArr['custom9'])));
         }
         if (isset($postArr['custom10'])) {
             $this->parent_empinfo->setCustom10(CommonFunctions::escapeHTML(trim($postArr['custom10'])));
         }
         $objectArr['EmpCustomInfo'] = $this->parent_empinfo;
     }
     return isset($objectArr) ? $objectArr : false;
 }
開發者ID:googlecode-mirror,項目名稱:pucit-orangehrm,代碼行數:101,代碼來源:EXTRACTOR_EmpInfo.php


注:本文中的CommonFunctions::escapeHTML方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。