当前位置: 首页>>代码示例>>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;未经允许,请勿转载。