本文整理汇总了PHP中XString::generateFakePhoneno方法的典型用法代码示例。如果您正苦于以下问题:PHP XString::generateFakePhoneno方法的具体用法?PHP XString::generateFakePhoneno怎么用?PHP XString::generateFakePhoneno使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XString
的用法示例。
在下文中一共展示了XString::generateFakePhoneno方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
.htm"><?php
echo $spaceBusinessRequirement->space->host->hospitalfaculty->name;
?>
</a>
级别:<?php
echo $spaceBusinessRequirement->space->host->adminLevel;
?>
级大夫</td>
</tr>
<tr>
<td colspan="5">
<?php
if (true == $isCallPanelLinkShown) {
?>
电话:<?php
echo XString::generateFakePhoneno($spaceBusinessRequirement->space->user->mobile);
?>
| <a target="_blank" href="<?php
echo $callPanelLink;
?>
">点击进入呼叫医生界面</a>
<?php
}
?>
邮箱:<?php
echo $spaceBusinessRequirement->space->user->email;
?>
</td>
</tr>
示例2:
$doctorName = $user->space->host->name;
}
if (false == $user->space->host->hospitalfaculty->isNull()) {
$hospitalFacultyName = $user->space->host->hospitalfaculty->name;
}
if (false == $user->space->host->hospitalfaculty->hospital->isNull()) {
$hospitalName = $user->space->host->hospitalfaculty->hospital->commonName;
}
?>
<tr>
<td width="10%">
<?php
if ($user->space->host->isNull()) {
echo '找不到医生信息' . "({$sendlog->mobile})";
} else {
$mobile = XString::generateFakePhoneno($sendlog->mobile);
echo "{$hospitalName} {$hospitalFacultyName} {$doctorName}" . '<br />' . "({})";
}
?>
</td>
<td width="45%"><?php
echo $sendlog->content;
?>
</td>
<td width="10%"><?php
echo $sendlog->ctime;
?>
</td>
<td width="10%"><?php
echo $replylog->content;
示例3: showOrderDetail
public function showOrderDetail($request, $response)
{
/*{{{*/
$response->showContent = true;
$orderId = $request->orderId;
DBC::requireNotEmptyString($orderId, '无效的订单ID');
$response->doctortype = $request->doctortype;
$order = DAL::get()->mustFind('BookingOrder', $orderId, true);
$space = $order->space;
$taskList = DAL::get()->find_all_by_objectid_and_objecttype('BookingTask', $orderId, 'bookingorder');
//约满
$seatLimits = BookingClient::getInstance()->getseatLimitCount($order->space, date('Y-m-d', strtotime("+ 0 day")), date('Y-m-d', strtotime("+ 17 day")));
//停诊
$stopDiagnose = DAL::get()->find_all_by_spaceid('StopDiagnose', $order->space->id);
$doctorOrderTotal = BookingClient::getInstance()->countDoctorOrder('BookingOrder', $order->space->id);
$proposalIds = DAL::get()->querySpacePatientProposals('proposal', $order->space, array(), $order->patient->id);
$proposals = DAL::get()->find('proposal', $proposalIds);
$doctorPatientRef = new NullEntity();
if (empty($proposalIds)) {
$doctorPatientRef = DAL::get()->find_by_spaceid_and_patientid('doctorpatientref', $order->space->id, $order->patient->id);
}
$response->doctorPatientRef = $doctorPatientRef;
$response->order = $order;
$response->taskList = $taskList;
$response->patientOrderTotal = BookingClient::getInstance()->countPatientOrder('BookingOrder', $order->user->id);
$response->doctorOrderTotal = $doctorOrderTotal;
$response->seatLimits = $seatLimits;
$response->stopDiagnose = $stopDiagnose;
//$bingLis4Schedule = BingLiDtoClient::getInstance()->getBingLiByRelatedObj($order->notification->proposal)->schedule;
//$response->bingLiSchedule = $bingLis4Schedule[0]->schedule;
//$response->bingLiAddress = BingLiDtoClient::getInstance()->getBingLiByRelatedObj($order->notification->proposal)->address;
$response->space = $space;
$response->doctorMobileEncoded = XString::encodeMobileNo($space->user->mobile);
$response->doctorMobileFaked = XString::generateFakePhoneno($space->user->mobile);
$response->cardOrderTotal = BookingClient::getInstance()->countCardOrder($order->patient->idcard);
$response->mobileOrderTotal = BookingClient::getInstance()->countMobileOrder($order->patient->mobile);
$response->patientDefaulted = BookingClient::getInstance()->countPatientDefaulted('BookingBlackList', $order->user->id, $order->patient->idcard, $order->user->mobile, $order->patient->mobile);
$response->proposals = $proposals;
$response->scheduleList = $this->getSchedule($order->space);
$isMobileCallable = XString::isMobile($space->user->mobile);
$isFixedLineCallable = XString::findPhoneNO($space->user->phone) != false;
$response->isCallPanelLinkShown = $isMobileCallable || $isFixedLineCallable;
$response->spaceBusinessRequirement = $space->getSpaceBusinessRequirement4Booking();
}
示例4: foreach
<th class="title" width="15%">发送时间</th>
<th class="title" width="60%">发送内容</th>
<th class="title" width="5%">ext</th>
<th class="title" width="5%">状态</th>
</tr>
<?php
if (empty($logList) == false) {
foreach ($logList as $log) {
?>
<tr>
<td><?php
if ($type == 'receive') {
echo $log->mobile;
} else {
echo XString::generateFakePhoneno($log->mobile);
}
?>
</td>
<td><?php
echo $log->ctime;
?>
</td>
<td><?php
echo $log->content;
?>
</td>
<td><?php
echo $log->ext;
?>
</td>