StepCheckout extends Step
in package

Table of Contents

$alreadyBooked  : bool
$booking  : Booking
$checkInDate  : DateTime
$checkOutDate  : DateTime
$customer  : mixed
$errors  : array<string|int, mixed>
$isValidStep  : mixed
$reservedRooms  : array<string|int, ReservedRoom>
$roomDetails  : array<string|int, mixed>
$isCorrectBookingData  : mixed
__construct()  : mixed
addInitActions()  : mixed
enqueueScripts()  : mixed
redirectAfterLogout()  : mixed
redirectOnFailedLogin()  : mixed
render()  : mixed
setup()  : mixed
showErrorsMessage()  : mixed
parseBookingData()  : bool
parseCheckInDate()  : bool
parseCheckOutDate()  : bool
parseCustomerData()  : mixed
showAlreadyBookedMessage()  : mixed
showSuccessMessage()  : mixed
stepValid()  : mixed

Properties

$alreadyBooked

protected bool $alreadyBooked = false

$booking

protected Booking $booking

$checkInDate

protected DateTime $checkInDate

$checkOutDate

protected DateTime $checkOutDate

$customer

protected mixed $customer = null

$errors

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

$isValidStep

protected mixed $isValidStep = false

$reservedRooms

protected array<string|int, ReservedRoom> $reservedRooms

$roomDetails

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

$isCorrectBookingData

private mixed $isCorrectBookingData = true

Methods

__construct()

public __construct() : mixed
Return values
mixed

addInitActions()

public addInitActions() : mixed
Return values
mixed

enqueueScripts()

public enqueueScripts() : mixed
Tags
since
3.7.2

added new action - "mphb_enqueue_checkout_scripts".

Return values
mixed

redirectAfterLogout()

public redirectAfterLogout() : mixed
Tags
since
4.2.1
Return values
mixed

redirectOnFailedLogin()

public redirectOnFailedLogin() : mixed
Tags
since
4.2.1
Return values
mixed

render()

public render() : mixed
Tags
since
3.7.0

added new action - "mphb_sc_checkout_before_errors".

Return values
mixed

setup()

public setup() : mixed
Tags
since
3.7.0

added new filter - "mphb_sc_checkout_step_checkout_booking_object".

Return values
mixed

showErrorsMessage()

public showErrorsMessage() : mixed
Return values
mixed

parseBookingData()

protected parseBookingData() : bool
Tags
since
3.7.0

added new filter - "mphb_sc_checkout_step_checkout_selected_rooms".

since
3.7.0

added new filter - "mphb_sc_checkout_step_checkout_room_to_reserve".

since
3.7.0

added new filter - "mphb_sc_checkout_step_checkout_rooms_details".

since
3.7.0

added new filter - "mphb_sc_checkout_step_checkout_reserved_rooms".

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

parseCustomerData()

protected parseCustomerData() : 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