本文整理匯總了PHP中Restaurant::get_phone方法的典型用法代碼示例。如果您正苦於以下問題:PHP Restaurant::get_phone方法的具體用法?PHP Restaurant::get_phone怎麽用?PHP Restaurant::get_phone使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Restaurant
的用法示例。
在下文中一共展示了Restaurant::get_phone方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Restaurant
// send email to user to confirm reservation
$restaurant = new Restaurant();
$restaurant->find($fields['restaurant_id']);
$mail = Mail::getInstance();
$mailto = $_POST['user_email'];
$subject = 'FineTable - Restaurant Reservation Confirmation!';
if (isset($_POST['guest_reservation']) && $_POST['guest_reservation'] == 'true') {
$body = '
<div class="mail-body" style="padding: 20px; border: 5px solid rgb(254, 127, 65); border-radius: 4px; margin: 0 auto; width: 90%;">
<p>Hello ' . $_POST['guest_fullname'] . ',</p>
<p>Congratulations!</p>
<p>You have made a reservation with restaurant: ' . $restaurant->get_restaurant_name() . '.</p>
<p>' . $restaurant->get_full_address() . '</p>
<p><b>Date: </b>' . $_POST['date'] . '</p>
<p><b>Time: </b>' . $_POST['time'] . '</p>
<p>If you need to make a change with the reservation, please contact the restaurant at: ' . $restaurant->get_phone() . '</p>
<p>Thank you!</p>
<p>FineTable team</p>
</div>
';
} else {
$body = '
<div class="mail-body" style="padding: 20px; border: 5px solid rgb(254, 127, 65); border-radius: 4px; margin: 0 auto; width: 90%;">
<p>Hello ' . $_COOKIE["login_user_firstname"] . ',</p>
<p>Congratulations!</p>
<p>You have made a reservation with restaurant: ' . $restaurant->get_restaurant_name() . '.</p>
<p>' . $restaurant->get_full_address() . '</p>
<p><b>Date: </b>' . $_POST['date'] . '</p>
<p><b>Time: </b>' . $_POST['time'] . '</p>
<p>If you need to make a change with the reservation, please contact the restaurant at: ' . $restaurant->get_phone() . '</p>
<p>Thank you!</p>