CheckoutControl extends StepControl
in package

Tags
since
3.8

Table of Contents

$checkInDate  : DateTime
$checkOutDate  : DateTime
$editBooking  : Booking
$roomDetails  : array<string|int, mixed>
__construct()  : mixed
display()  : mixed
presetAdults()  : int
presetChildren()  : int
presetGuestName()  : string
presetRate()  : mixed
presetSelectedService()  : bool
presetServiceAdults()  : int
presetServiceQuantity()  : int
setup()  : mixed
parseRooms()  : array<string|int, mixed>

Properties

$checkInDate

protected DateTime $checkInDate = null

$checkOutDate

protected DateTime $checkOutDate = null

$editBooking

protected Booking $editBooking = null

$roomDetails

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

Methods

__construct()

public __construct(Booking $editBooking) : mixed
Parameters
$editBooking : Booking
Return values
mixed

display()

public display(Booking $editBooking, array<string|int, mixed> $settings) : mixed
Parameters
$editBooking : Booking

Completely similar to the booking in the constructor.

$settings : array<string|int, mixed>
Tags
see
EditBookingMenuPage2::renderValid()
Return values
mixed

presetAdults()

public presetAdults(int $adults, RoomType $roomType, ReservedRoom $reservedRoom) : int
Parameters
$adults : int
$roomType : RoomType
$reservedRoom : ReservedRoom
Return values
int

presetChildren()

public presetChildren(int $children, RoomType $roomType, ReservedRoom $reservedRoom) : int
Parameters
$children : int
$roomType : RoomType
$reservedRoom : ReservedRoom
Return values
int

presetGuestName()

public presetGuestName(string $guestName, ReservedRoom $reservedRoom) : string
Parameters
$guestName : string
$reservedRoom : ReservedRoom
Return values
string

presetRate()

public presetRate(mixed $rateId, mixed $reservedRoom) : mixed
Parameters
$rateId : mixed
$reservedRoom : mixed
Return values
mixed

presetSelectedService()

public presetSelectedService(bool $isSelected, Service $service, ReservedRoom $reservedRoom) : bool
Parameters
$isSelected : bool
$service : Service
$reservedRoom : ReservedRoom
Return values
bool

presetServiceAdults()

public presetServiceAdults(int $adults, Service $service, ReservedRoom $reservedRoom) : int
Parameters
$adults : int
$service : Service
$reservedRoom : ReservedRoom
Return values
int

presetServiceQuantity()

public presetServiceQuantity(int $quantity, Service $service, ReservedRoom $reservedRoom) : int
Parameters
$quantity : int
$service : Service
$reservedRoom : ReservedRoom
Return values
int

setup()

public setup() : mixed
Return values
mixed

parseRooms()

protected parseRooms() : array<string|int, mixed>
Return values
array<string|int, mixed>

[Room ID => Reserved room ID]

Search results