本文整理汇总了PHP中Locale::formatPhone方法的典型用法代码示例。如果您正苦于以下问题:PHP Locale::formatPhone方法的具体用法?PHP Locale::formatPhone怎么用?PHP Locale::formatPhone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Locale
的用法示例。
在下文中一共展示了Locale::formatPhone方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
$name = isset($_POST['contact']['name']) ? $_POST['contact']['name'] : "";
$email = isset($_POST['contact']['email']) ? $_POST['contact']['email'] : "";
$phoneNumber = isset($_POST['contact']['tel']) ? $_POST['contact']['tel'] : "";
$message = isset($_POST['contact']['message']) ? $_POST['contact']['message'] : "";
?>
<div class="top-widget-container narrow book-viewing-widget">
<div class="inner-padding">
<div class="row-fluid">
<div class="form-header">Arrange Viewing</div>
<div class="branch-name"><?php
echo $branch->bra_title;
?>
</div>
<div class="branch-telephone"><?php
echo Locale::formatPhone($branch->bra_tel);
?>
</div>
</div>
<?php
if ($propertyStatus && $propertyStatus == 'Under Offer') {
?>
<div class="row-fluid property-under-offer">
This property is currently <?php
echo $propertyStatus;
?>
</div>
<?php
}
?>
<?php
示例2: array
<?php
/**
* @var $this InstructionController
* @var $owner Client
* @var $model Deal
* @var $client Client
*
*/
?>
<fieldset>
<div class="block-header">Text message</div>
<div class="content">
<h6>Vendor: <?php
echo CHtml::link($owner->getFullName(), ['client/update', 'id' => $owner->cli_id]);
?>
</h6>
<?php
echo $this->renderPartial('application.modules.admin4.views.sms.textForm', array('client' => $owner, 'defaultText' => $client->getFullName() . ' wants to view your property. Please contact them on ' . Locale::formatPhone($client->getPrimaryPhoneNumber()) . ' or ' . $client->email . '. W&S', 'callback' => isset($callback) ? $callback : null));
?>
</div>
</fieldset>
示例3: uniqid
<?php
/**
* @var $this InstructionController
* @var $client Client
* @var $model Deal
* @var $owner Client
*
*/
$text = "{$client->getFullName()} wants to view your property. Please call them to arrange a time and date.\nThey can be contacted on " . ($client->getPrimaryPhoneNumber() ? Locale::formatPhone($client->getPrimaryPhoneNumber()) : '') . " or at {$client->email}. Regards, W&S.";
$id = uniqid();
?>
<fieldset id="<?php
echo $id;
?>
">
<div class="block-header">Email</div>
<div class="content">
<form class="email-notification">
<div class="classssss"></div>
<div class="control-group">
<label class="control-label">To</label>
<div class="controls">
<?php
echo CHtml::textField('to_name', $owner->getFullName());
?>
</div>
</div>
<div class="control-group">
<label class="control-label">Email</label>
示例4:
?>
<tr>
<td><?php
echo CHtml::link(CHtml::image(Icon::EDIT_ICON, 'edit', ['style' => 'vertical-align:middle']), ['client/update', 'id' => $client->cli_id]);
?>
</td>
<td><?php
echo $client->getFullName();
?>
</td>
<td><?php
echo $client->email;
?>
</td>
<td><?php
echo $client->telephones[0] ? Locale::formatPhone($client->telephones[0]->tel_number) : '';
?>
</td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</div>
<?php
}
?>
</div>