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


PHP shopFunctionsF::mask_string方法代碼示例

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


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

示例1: getMaskedCCnumber

 /**
  * Remove some numbers from the CC when displaying it
  * when debug or log option is on
  *
  */
 function getMaskedCCnumber()
 {
     if (!class_exists('shopFunctionsF')) {
         require JPATH_VM_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php';
     }
     return shopFunctionsF::mask_string($this->getVar('cc_number'), '*');
     $this->getVar('cc_number');
 }
開發者ID:arkane0906,項目名稱:lasercut-bootstrap,代碼行數:13,代碼來源:customerdata.php

示例2: getPaymentRef

 /**
  * @param $realex_data
  * @return mixed
  */
 function getPaymentRef($realex_data)
 {
     $fields = array('SAVED_PMT_TYPE', 'SAVED_PMT_REF', 'SAVED_PMT_DIGITS', 'SAVED_PMT_EXPDATE', 'SAVED_PMT_NAME');
     $userfield['virtuemart_user_id'] = $this->order['details']['BT']->virtuemart_user_id;
     $userfield['merchant_id'] = $this->_method->merchant_id;
     foreach ($fields as $field) {
         if (isset($realex_data[$field])) {
             if ($field == 'SAVED_PMT_DIGITS') {
                 $realex_data[$field] = shopFunctionsF::mask_string($realex_data[$field], '*');
             }
             $userfield['realex_hpp_api_' . strtolower($field)] = $realex_data[$field];
         }
     }
     return $userfield;
 }
開發者ID:lenard112,項目名稱:cms,代碼行數:19,代碼來源:redirect.php

示例3: manageSetNewPayment

 /**
  * @param $response
  * @param $realexInterface
  * @return bool
  */
 function manageSetNewPayment($response, $newPayerRef, $newPaymentRef)
 {
     $this->plugin->_storeRealexInternalData($response, $this->_method->virtuemart_paymentmethod_id, $this->order['details']['BT']->virtuemart_order_id, $this->order['details']['BT']->order_number, $this->request_type);
     $xml_response = simplexml_load_string($response);
     $success = $this->isResponseSuccess($xml_response);
     if (!$success) {
         $error = $xml_response->message . " (" . (string) $xml_response->result . ")";
         $this->displayError($error);
         vmInfo('VMPAYMENT_REALEX_HPP_API_CARD_STORAGE_FAILED');
         return false;
     }
     $userfield['virtuemart_user_id'] = $this->order['details']['BT']->virtuemart_user_id;
     $userfield['merchant_id'] = $this->_method->merchant_id;
     $userfield['realex_hpp_api_saved_pmt_ref'] = $newPaymentRef;
     //$userfield['realex_saved_payer_ref'] = $newPayerRef;
     $userfield['realex_hpp_api_saved_pmt_type'] = $this->customerData->getVar('cc_type');
     if (!class_exists('shopFunctionsF')) {
         require VMPATH_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php';
     }
     $userfield['realex_hpp_api_saved_pmt_digits'] = shopFunctionsF::mask_string($this->customerData->getVar('cc_number'), '*');
     $userfield['realex_hpp_api_saved_pmt_name'] = $this->customerData->getVar('cc_name');
     $userfield['realex_hpp_api_saved_pmt_expdate'] = $this->getFormattedExpiryDateForRequest();
     return $userfield;
 }
開發者ID:virtuemart-fr,項目名稱:virtuemart-fr,代碼行數:29,代碼來源:helper.php


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