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


PHP Base_Common::convertPhoneNum方法代码示例

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


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

示例1: processOperatorInfo

 public function processOperatorInfo($OperatorInfo)
 {
     //获取全局配置
     $oMenCache = new Base_Cache_Memcache("Complaint");
     $Setting = $oMenCache->get('setting');
     $NewOperatorInfo = array();
     if (isset($OperatorInfo['id'])) {
         $NewOperatorInfo['OperatorId'] = $OperatorInfo['id'];
         $NewOperatorInfo['ServiceLogUrl'] = $this->config->ScUrl . "/?question/selfHistoryQuestion/" . urlencode($OperatorInfo['login_name']);
     }
     if (isset($OperatorInfo['login_name'])) {
         $NewOperatorInfo['OperatorName'] = $OperatorInfo['login_name'];
     }
     if (isset($OperatorInfo['cno'])) {
         $NewOperatorInfo['Cno'] = $OperatorInfo['cno'];
     }
     if (isset($OperatorInfo['name'])) {
         $NewOperatorInfo['NickName'] = $OperatorInfo['name'];
     }
     if (isset($OperatorInfo['photo'])) {
         $NewOperatorInfo['PhotoLink'] = strlen(trim($OperatorInfo['photo'])) >= 1 ? trim($OperatorInfo['photo']) : $this->config->DefaultOperatorPic;
     }
     if (isset($OperatorInfo['tel']) && $Setting['telDisplay']) {
         $NewOperatorInfo['Tel'] = $OperatorInfo['tel'];
     }
     if (isset($OperatorInfo['mobile'])) {
         $NewOperatorInfo['Mobile'] = Base_Common::convertPhoneNum($OperatorInfo['mobile']);
     }
     if (isset($OperatorInfo['weixin'])) {
         $NewOperatorInfo['Weixin'] = $OperatorInfo['weixin'];
         $NewOperatorInfo['WeixinPhotoLink'] = $OperatorInfo['weixinPicUrl'];
     }
     if (isset($OperatorInfo['xnGroupId']) && $Setting['xnDisplay']) {
         $NewOperatorInfo['xn']['xnGroupId'] = $OperatorInfo['xnGroupId'];
         $XNDefault = $this->getXNDefault();
         $NewOperatorInfo['xn']['xnSiteId'] = $XNDefault['xnSiteId'];
         $NewOperatorInfo['xn']['xnSellerId'] = $XNDefault['xnSellerId'];
         $NewOperatorInfo['xn']['xnDefaultSettingId'] = $XNDefault['xnDefaultSettingId'];
     } else {
         if (isset($OperatorInfo['QQ']) && $Setting['qqDisplay']) {
             $NewOperatorInfo['QQ'] = $OperatorInfo['QQ'];
         }
     }
     return $NewOperatorInfo;
 }
开发者ID:032404cxd,项目名称:prototype_main,代码行数:45,代码来源:Operator.php


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