CheckoutView
in package

TODO add actions & filters TODO move html to internal templates

Table of Contents

_renderCouponButtonParagraphClose()  : mixed
_renderCouponButtonParagraphOpen()  : mixed
_renderCouponCodeParagraphClose()  : mixed
_renderCouponCodeParagraphOpen()  : mixed
renderBillingDetails()  : mixed
renderBillingDetailsHidden()  : mixed
renderBookingDetails()  : mixed
renderBookingDetailsInner()  : mixed
renderCheckInDate()  : mixed
renderCheckOutDate()  : mixed
renderCheckoutForm()  : mixed
renderCheckoutText()  : mixed
renderCoupon()  : mixed
renderCustomerDetails()  : mixed
renderCustomerErrors()  : mixed
renderGuestsChooser()  : mixed
renderLoginForm()  : mixed
renderPriceBreakdown()  : mixed
renderRateChooser()  : mixed
renderRoomTypeTitle()  : mixed
renderServiceChooser()  : mixed
renderTermsAndConditions()  : mixed
renderTotalPrice()  : mixed

Methods

_renderCouponButtonParagraphClose()

public static _renderCouponButtonParagraphClose() : mixed
Return values
mixed

_renderCouponButtonParagraphOpen()

public static _renderCouponButtonParagraphOpen() : mixed
Return values
mixed

_renderCouponCodeParagraphClose()

public static _renderCouponCodeParagraphClose() : mixed
Return values
mixed

_renderCouponCodeParagraphOpen()

public static _renderCouponCodeParagraphOpen() : mixed
Return values
mixed

renderBillingDetails()

public static renderBillingDetails(Booking $booking) : mixed
Parameters
$booking : Booking
Return values
mixed

renderBillingDetailsHidden()

public static renderBillingDetailsHidden(Booking $booking) : mixed
Parameters
$booking : Booking
Return values
mixed

renderBookingDetails()

public static renderBookingDetails(Booking $booking, array<string|int, mixed> $roomDetails) : mixed
Parameters
$booking : Booking
$roomDetails : array<string|int, mixed>
Return values
mixed

renderBookingDetailsInner()

public static renderBookingDetailsInner(Booking $booking, array<string|int, mixed> $roomDetails) : mixed
Parameters
$booking : Booking
$roomDetails : array<string|int, mixed>
Tags
since
3.7.0

added parameter $reservedRoom to action "mphb_sc_checkout_room_details".

since
3.7.0

parameter $roomType of the action "mphb_sc_checkout_room_details" became third.

Return values
mixed

renderCheckInDate()

public static renderCheckInDate(Booking $booking) : mixed
Parameters
$booking : Booking
Return values
mixed

renderCheckOutDate()

public static renderCheckOutDate(Booking $booking) : mixed
Parameters
$booking : Booking
Return values
mixed

renderCheckoutForm()

public static renderCheckoutForm(Booking $booking, array<string|int, mixed> $roomDetails[, mixed $customer = null ]) : mixed
Parameters
$booking : Booking
$roomDetails : array<string|int, mixed>
$customer : mixed = null
Return values
mixed

renderCheckoutText()

public static renderCheckoutText() : mixed
Return values
mixed

renderCoupon()

public static renderCoupon() : mixed
Return values
mixed

renderCustomerDetails()

public static renderCustomerDetails(mixed $booking, mixed $roomDetails[, mixed $customer = null ]) : mixed
Parameters
$booking : mixed
$roomDetails : mixed
$customer : mixed = null
Tags
since
4.2.0
  • \MPHB\UsersAndRoles\Customer $customer added
Return values
mixed

renderCustomerErrors()

public static renderCustomerErrors() : mixed
Tags
since
4.2.0
Return values
mixed

renderGuestsChooser()

public static renderGuestsChooser(ReservedRoom $reservedRoom, string $roomIndex, RoomType $roomType, Booking $booking) : mixed
Parameters
$reservedRoom : ReservedRoom
$roomIndex : string
$roomType : RoomType
$booking : Booking
Tags
since
3.7

added parameter $reservedRoom (become first).

since
3.7

parameters changed their positions: {$roomType, $roomIndex, $booking} to {$reservedRoom, $roomIndex, $roomType, $booking}.

since
3.7

added new filters: "mphb_sc_checkout_preset_adults" and "mphb_sc_checkout_preset_children".

since
3.8

added new filter - "mphb_sc_checkout_preset_guest_name".

Return values
mixed

renderLoginForm()

public static renderLoginForm() : mixed
Tags
since
4.2.0
Return values
mixed

renderPriceBreakdown()

public static renderPriceBreakdown(mixed $booking) : mixed
Parameters
$booking : mixed
Return values
mixed

renderRateChooser()

public static renderRateChooser(ReservedRoom $reservedRoom, int $roomIndex, RoomType $roomType, Booking $booking, array<string|int, mixed> $roomDetails) : mixed
Parameters
$reservedRoom : ReservedRoom
$roomIndex : int
$roomType : RoomType
$booking : Booking
$roomDetails : array<string|int, mixed>
Tags
since
3.7

parameters changed their positions: {$roomType, $roomIndex, $booking, $roomDetails} to {$reservedRoom, $roomIndex, $roomType, $booking, $roomDetails}.

since
3.8

added new filter - "mphb_sc_checkout_preset_rate_id".

Return values
mixed

renderRoomTypeTitle()

public static renderRoomTypeTitle(ReservedRoom $reservedRoom, int $roomIndex, RoomType $roomType) : mixed
Parameters
$reservedRoom : ReservedRoom
$roomIndex : int
$roomType : RoomType
Tags
since
3.7.0

added parameter $reservedRoom.

since
3.7.0

parameter $roomType became third.

Return values
mixed

renderServiceChooser()

public static renderServiceChooser(ReservedRoom $reservedRoom, int $roomIndex, RoomType $roomType, Booking $booking) : mixed
Parameters
$reservedRoom : ReservedRoom
$roomIndex : int
$roomType : RoomType
$booking : Booking
Tags
since
3.7

parameters changed their positions: {$roomType, $roomIndex, $booking} to {$reservedRoom, $roomIndex, $roomType, $booking}.

since
3.7

added new filter - "mphb_sc_checkout_is_selected_service".

since
3.8

added new filters: "mphb_sc_checkout_preset_service_adults" and "mphb_sc_checkout_preset_service_quantity".

Return values
mixed

renderTermsAndConditions()

public static renderTermsAndConditions() : mixed
Return values
mixed

renderTotalPrice()

public static renderTotalPrice(Booking $booking) : mixed
Parameters
$booking : Booking
Return values
mixed

Search results