本文整理汇总了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;
}