BookingUtils
in package

Tags
since
3.7.0

Table of Contents

getFakeBooking()  : Booking
getReservedRoomTypesList()  : array<string|int, mixed>
getTestBooking()  : Booking
resetBooking()  : mixed
Prevent all new emails from appearing in customer's mailbox. Prevent all new logs from appearing in booking logs.

Methods

getFakeBooking()

public static getFakeBooking() : Booking
Tags
since
3.7.2
Return values
Booking

getReservedRoomTypesList()

public static getReservedRoomTypesList(Booking $booking[, string|null $language = null ][, bool $translateIds = true ]) : array<string|int, mixed>
Parameters
$booking : Booking
$language : string|null = null

Optional. Language code, "original" (get the title on default language) or NULL (use current language translation). NULL by default (current language).

$translateIds : bool = true

Optional. TRUE by default.

Tags
since
3.7.0
Return values
array<string|int, mixed>

[Room type ID => Room type title]

getTestBooking()

public static getTestBooking() : Booking
Tags
since
3.7.2
Return values
Booking

resetBooking()

Prevent all new emails from appearing in customer's mailbox. Prevent all new logs from appearing in booking logs.

public static resetBooking(Booking $booking) : mixed
Parameters
$booking : Booking
Tags
since
3.7.2
Return values
mixed

Search results