StepBooking extends Step
in package

Table of Contents

$checkInDate  : DateTime
$checkOutDate  : DateTime
$customer  : Customer
$errors  : array<string|int, mixed>
$gatewayId  : string
$isAlreadyBooked  : bool
$isCorrectData  : bool
$isCorrectPaymentData  : bool
$isValidStep  : mixed
$unableToCreateBooking  : bool
$booking  : Booking
$checkoutId  : string
Checkout ID (maybe checkout ID of $unfinishedBooking).
$reservedRooms  : array<string|int, ReservedRoom>
$unfinishedBooking  : Booking|null
Booked before clicking "Back" button in browser (reserved, but not completed). We can use it's reserved rooms.
$unfinishedRooms  : array<string|int, mixed>
Rooms from $unfinishedBooking. Still available if the current checkout ID equals to $unfinishedBooking->checkoutId.
parseRoomRate()  : bool
render()  : mixed
setup()  : mixed
showErrorsMessage()  : mixed
cleanUnfinished()  : mixed
createCustomer()  : int|WP_Error
createPayment()  : Payment|null
parseBookingData()  : bool
parseCheckInDate()  : bool
parseCheckOutDate()  : bool
parseCheckoutId()  : mixed
parseCustomerData()  : bool
parseGatewayId()  : bool
parsePaymentData()  : bool
parsePaymentMethodFields()  : mixed
parseUnfinishedBookingData()  : mixed
showAlreadyBookedMessage()  : mixed
showSuccessMessage()  : mixed
stepValid()  : mixed

Properties

$checkInDate

protected DateTime $checkInDate

$checkOutDate

protected DateTime $checkOutDate

$customer

protected Customer $customer

$errors

protected array<string|int, mixed> $errors = array()

$gatewayId

protected string $gatewayId

$isAlreadyBooked

protected bool $isAlreadyBooked = false

$isCorrectData

protected bool $isCorrectData = false

$isCorrectPaymentData

protected bool $isCorrectPaymentData = false

$isValidStep

protected mixed $isValidStep = false

$unableToCreateBooking

protected bool $unableToCreateBooking = false

$booking

private Booking $booking

$checkoutId

Checkout ID (maybe checkout ID of $unfinishedBooking).

private string $checkoutId = ''

$reservedRooms

private array<string|int, ReservedRoom> $reservedRooms = array()

$unfinishedBooking

Booked before clicking "Back" button in browser (reserved, but not completed). We can use it's reserved rooms.

private Booking|null $unfinishedBooking = null

$unfinishedRooms

Rooms from $unfinishedBooking. Still available if the current checkout ID equals to $unfinishedBooking->checkoutId.

private array<string|int, mixed> $unfinishedRooms = array()

Methods

parseRoomRate()

public parseRoomRate() : bool
Return values
bool

render()

public render() : mixed
Return values
mixed

setup()

public setup() : mixed
Return values
mixed

showErrorsMessage()

public showErrorsMessage() : mixed
Return values
mixed

cleanUnfinished()

protected cleanUnfinished() : mixed
Return values
mixed

createCustomer()

protected createCustomer() : int|WP_Error
Tags
since
4.2.0
Return values
int|WP_Error

createPayment()

protected createPayment(Booking $booking) : Payment|null
Parameters
$booking : Booking
Return values
Payment|null

parseBookingData()

protected parseBookingData() : bool
Tags
since
3.7.0

added new filter - "mphb_sc_checkout_step_booking_rooms_details".

since
3.7.0

added new filter - "mphb_search_available_rooms".

since
3.7.0

added new filter - "mphb_sc_checkout_step_booking_booking_details".

Return values
bool

parseCheckInDate()

protected parseCheckInDate() : bool
Tags
since
3.7.0

added new filter - "mphb_sc_checkout_parse_check_in_date".

Return values
bool

parseCheckOutDate()

protected parseCheckOutDate() : bool
Tags
since
3.7.0

added new filter - "mphb_sc_checkout_parse_check_out_date".

Return values
bool

parseCheckoutId()

protected parseCheckoutId() : mixed
Return values
mixed

parseCustomerData()

protected parseCustomerData() : bool
Tags
since
3.7.0

added new filter - "mphb_sc_checkout_step_booking_customer_details".

since
3.7.2

the filter "mphb_sc_checkout_step_booking_customer_details" was removed.

Return values
bool

parseGatewayId()

protected parseGatewayId() : bool
Return values
bool

parsePaymentData()

protected parsePaymentData() : bool
Return values
bool

parsePaymentMethodFields()

protected parsePaymentMethodFields() : mixed
Return values
mixed

parseUnfinishedBookingData()

protected parseUnfinishedBookingData() : mixed
Return values
mixed

showAlreadyBookedMessage()

protected showAlreadyBookedMessage() : mixed
Return values
mixed

showSuccessMessage()

protected showSuccessMessage() : mixed
Return values
mixed

stepValid()

protected stepValid() : mixed
Return values
mixed

Search results