コード例 #1
0
$hotels->extractor($hotels->getHotelFromId());
$date = date("Y-m-d");
// current date
$new_date = strtotime(date("Y-m-d", strtotime($date)) . " +3 month");
$expire_date = date("Y-m-d", $new_date);
$bookingclient->setId($reservations->reservationClientId());
$bookingclient->extractor($bookingclient->getClientsFromId());
$country = new country();
$country->setCountryId($bookingclient->country());
$country->extractor($country->getCountryFromId());
$rooms->setRoomTypeId($reservations->reservationHotelRoomTypeId());
$rooms->extractor($rooms->getHotelRoomTypeFromId());
$client_name = $bookingclient->name();
$client_mobile = $bookingclient->contactno();
$client_email = $bookingclient->email();
$client_message = $bookingclient->message();
$hotel_name = $hotels->hotelName();
$hotel_url = $hotels->hotelSeoUrl();
$room_type = $rooms->roomTypeName();
if ($reservations->reservationBedType() == "sgl") {
    $bed_type = "Single Bed";
}
if ($reservations->reservationBedType() == "dbl") {
    $bed_type = "Double Bed";
}
if ($reservations->reservationBedType() == "tpl") {
    $bed_type = "Tripple Bed";
}
if ($reservations->reservationBedType() == "") {
    $bed_type = "Not Selected";
}
コード例 #2
0
ファイル: voucher_template.php プロジェクト: jcodesdotme/pp
$rooms = new HotelRoomType();
$merchantReferenceNo = $merchantReferenceNo;
$reservations->setReservationId($merchantReferenceNo);
$pay_data = $reservations->getReservationsFromId();
$pay_data = $reservations->getReservationsFromId();
$reservations->extractor($pay_data);
$reservation_link_id = $reservations->reservationFromBookingLink();
$reservations_status = $reservations->reservationPaymentStatus();
if ($reservations->reservationFromBookingLink()) {
    $client = new BookingClient();
    $client->setId($reservations->reservationClientId());
    $client->extractor($client->getClientsFromId());
    $client_name = $client->name();
    $client_mobile = $client->contactno();
    $client_email = $client->email();
    $client_message = $client->message();
    $client_city = $client->city();
    $client_country = $client->country();
    $client_address = $client->address1() . " " . $client->address2();
} else {
    $client = new Clients();
    $client->setClientId($reservations->reservationClientId());
    $client->extractor($client->getClientFromId());
    $client_name = $client->clientFirstName() . " " . $client->clientLastName();
    $client_mobile = $client->clientPhoneMobile();
    $client_email = $client->clientEmail();
    $client_message = "";
    $client_city = $client->clientCity();
    $client_country = $client->clientCountry();
    $client_address = $client->clientAddress();
}