BookingsParser
in package

Tags
since
3.5.0

Table of Contents

$count  : int
parseColumns()  : array<string|int, mixed>
parseAddress()  : string
parseAdults()  : int
parseBookingId()  : int
parseBookingStatus()  : string
parseCheckIn()  : string
parseCheckOut()  : string
parseChildren()  : int
parseCity()  : string
parseCountry()  : string
parseCoupon()  : string
parseCustomerNote()  : string
parseDate()  : string
parseDiscount()  : string
parseEmail()  : string
parseFees()  : string
parseFirstName()  : string
parseGuestName()  : string
parseLastName()  : string
parsePaid()  : string
parsePayments()  : string
parsePhone()  : string
parsePostcode()  : string
parsePrice()  : string
parseRate()  : string
parseRoom()  : string
parseRoomType()  : string
parseRoomTypeId()  : int
parseServices()  : string
parseState()  : string
parseSubtotal()  : string
parseSubtotalServices()  : string
parseTaxes()  : string
parseTotalFees()  : string
parseTotalFeeTaxes()  : string
parseTotalServiceTaxes()  : string
parseTotalTaxes()  : string
getRoomPriceBreakdown()  : array<string|int, mixed>

Properties

$count

public int $count
Tags
since
3.9.8

Methods

parseColumns()

public parseColumns(Booking $booking, ReservedRoom $room, array<string|int, mixed> $columns, int $count) : array<string|int, mixed>
Parameters
$booking : Booking
$room : ReservedRoom
$columns : array<string|int, mixed>

Column names.

$count : int

Count interations of rooms.

Tags
since
3.7.0

removed the filter "mphb_export_bookings_parse_column".

since
3.7.0

added new filter "mphb_export_bookings_parse_columns".

Return values
array<string|int, mixed>

[Column name => Column value]

parseAddress()

protected parseAddress(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseAdults()

protected parseAdults(Booking $booking, ReservedRoom $room) : int
Parameters
$booking : Booking
$room : ReservedRoom
Return values
int

parseBookingId()

protected parseBookingId(Booking $booking, ReservedRoom $room) : int
Parameters
$booking : Booking
$room : ReservedRoom
Return values
int

parseBookingStatus()

protected parseBookingStatus(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseCheckIn()

protected parseCheckIn(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

Check-in date in current format.

parseCheckOut()

protected parseCheckOut(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

Check-out date in current format.

parseChildren()

protected parseChildren(Booking $booking, ReservedRoom $room) : int
Parameters
$booking : Booking
$room : ReservedRoom
Return values
int

parseCity()

protected parseCity(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseCountry()

protected parseCountry(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseCoupon()

protected parseCoupon(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseCustomerNote()

protected parseCustomerNote(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseDate()

protected parseDate(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseDiscount()

protected parseDiscount(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseEmail()

protected parseEmail(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseFees()

protected parseFees(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Tags
since
3.9.8
Return values
string

parseFirstName()

protected parseFirstName(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseGuestName()

protected parseGuestName(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseLastName()

protected parseLastName(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parsePaid()

protected parsePaid(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parsePayments()

protected parsePayments(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parsePhone()

protected parsePhone(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parsePostcode()

protected parsePostcode(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parsePrice()

protected parsePrice(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseRate()

protected parseRate(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

Rate name.

parseRoom()

protected parseRoom(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

Reserved room name (physical accommodation).

parseRoomType()

protected parseRoomType(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

Room type name.

parseRoomTypeId()

protected parseRoomTypeId(Booking $booking, ReservedRoom $room) : int
Parameters
$booking : Booking
$room : ReservedRoom
Return values
int

Room type ID.

parseServices()

protected parseServices(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseState()

protected parseState(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseSubtotal()

protected parseSubtotal(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseSubtotalServices()

protected parseSubtotalServices(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Return values
string

parseTaxes()

protected parseTaxes(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Tags
since
3.9.8
Return values
string

parseTotalFees()

protected parseTotalFees(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Tags
since
3.9.8
Return values
string

parseTotalFeeTaxes()

protected parseTotalFeeTaxes(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Tags
since
3.9.8
Return values
string

parseTotalServiceTaxes()

protected parseTotalServiceTaxes(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Tags
since
3.9.8
Return values
string

parseTotalTaxes()

protected parseTotalTaxes(Booking $booking, ReservedRoom $room) : string
Parameters
$booking : Booking
$room : ReservedRoom
Tags
since
3.9.8
Return values
string

getRoomPriceBreakdown()

private getRoomPriceBreakdown(Booking $booking, ReservedRoom $room) : array<string|int, mixed>
Parameters
$booking : Booking
$room : ReservedRoom
Return values
array<string|int, mixed>

Search results