BookingsCalendar
in package

Table of Contents

ALL_ROOM_TYPES  = '0'
ATTS_FIELD_NAME  = 'mphb_bookings_calendar'
PERIOD_TYPE_CUSTOM  = 'custom'
PERIOD_TYPE_MONTH  = 'month'
PERIOD_TYPE_QUARTER  = 'quarter'
PERIOD_TYPE_YEAR  = 'year'
$customPeriodFrom  : DateTime
$customPeriodTo  : DateTime
$data  : array<string|int, mixed>
$isUseSearch  : bool
$period  : DatePeriod
$periodArr  : array<string|int, mixed>
$periodEndDate  : DateTime
$periodPage  : int
$periodStartDate  : DateTime
$periodType  : string
$roomPosts  : array<string|int, WP_POST>
$roomTypeId  : string
$searchDateFrom  : DateTime
$searchDateTo  : DateTime
$searchRoomAvailabilityStatus  : string
__construct()  : mixed
getPeriodsList()  : mixed
render()  : mixed
renderDatesTable()  : mixed
renderDatesTableHeadingsRow()  : mixed
renderFilters()  : mixed
renderRoomsTable()  : mixed
generateCellTitle()  : string
getRoomDateDetails()  : array<string|int, mixed>
getSearchRoomAvailabilityStatuses()  : mixed
parseFiltersAtts()  : array<string|int, mixed>
renderCustomPeriodFilter()  : mixed
renderPeriodFilter()  : mixed
renderPseudoCell()  : mixed
renderRoomSearch()  : mixed
renderRoomTypeSelect()  : mixed
renderSearchResultsLabel()  : mixed
setupBlocks()  : mixed
setupData()  : mixed
setupPeriod()  : mixed
setupRooms()  : mixed

Constants

ALL_ROOM_TYPES

public mixed ALL_ROOM_TYPES = '0'

ATTS_FIELD_NAME

public mixed ATTS_FIELD_NAME = 'mphb_bookings_calendar'

PERIOD_TYPE_CUSTOM

public mixed PERIOD_TYPE_CUSTOM = 'custom'

PERIOD_TYPE_MONTH

public mixed PERIOD_TYPE_MONTH = 'month'

PERIOD_TYPE_QUARTER

public mixed PERIOD_TYPE_QUARTER = 'quarter'

PERIOD_TYPE_YEAR

public mixed PERIOD_TYPE_YEAR = 'year'

Properties

$customPeriodFrom

private DateTime $customPeriodFrom

$customPeriodTo

private DateTime $customPeriodTo

$data

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

$isUseSearch

private bool $isUseSearch = false

$period

private DatePeriod $period

$periodArr

private array<string|int, mixed> $periodArr

$periodEndDate

private DateTime $periodEndDate

$periodPage

private int $periodPage

$periodStartDate

private DateTime $periodStartDate

$periodType

private string $periodType

$roomPosts

private array<string|int, WP_POST> $roomPosts = array()

$roomTypeId

private string $roomTypeId

$searchDateFrom

private DateTime $searchDateFrom

$searchDateTo

private DateTime $searchDateTo

$searchRoomAvailabilityStatus

private string $searchRoomAvailabilityStatus

Methods

__construct()

public __construct([array<string|int, mixed> $atts = array() ]) : mixed
Parameters
$atts : array<string|int, mixed> = array()
Return values
mixed

getPeriodsList()

public static getPeriodsList() : mixed
Return values
mixed

render()

public render() : mixed
Return values
mixed

renderDatesTable()

public renderDatesTable() : mixed
Return values
mixed

renderDatesTableHeadingsRow()

public renderDatesTableHeadingsRow() : mixed
Return values
mixed

renderFilters()

public renderFilters() : mixed
Return values
mixed

renderRoomsTable()

public renderRoomsTable() : mixed
Return values
mixed

generateCellTitle()

private generateCellTitle(DateTime $date, array<string|int, mixed> $details, string $part) : string
Parameters
$date : DateTime
$details : array<string|int, mixed>
$part : string

"first"|"second"

Return values
string

getRoomDateDetails()

private getRoomDateDetails(int $roomId, DateTime $date) : array<string|int, mixed>
Parameters
$roomId : int
$date : DateTime
Return values
array<string|int, mixed>

getSearchRoomAvailabilityStatuses()

private getSearchRoomAvailabilityStatuses() : mixed
Return values
mixed

parseFiltersAtts()

private parseFiltersAtts([array<string|int, mixed> $defaults = array() ]) : array<string|int, mixed>
Parameters
$defaults : array<string|int, mixed> = array()
Return values
array<string|int, mixed>

renderCustomPeriodFilter()

private renderCustomPeriodFilter() : mixed
Return values
mixed

renderPeriodFilter()

private renderPeriodFilter() : mixed
Return values
mixed

renderPseudoCell()

private renderPseudoCell(string $roomId, DateTime $date) : mixed
Parameters
$roomId : string
$date : DateTime
Tags
since
3.9.6
  • imported bookings are marked.
Return values
mixed

renderRoomSearch()

private renderRoomSearch() : mixed
Return values
mixed

renderRoomTypeSelect()

private renderRoomTypeSelect() : mixed
Return values
mixed

renderSearchResultsLabel()

private renderSearchResultsLabel() : mixed
Return values
mixed

setupBlocks()

private setupBlocks() : mixed
Return values
mixed

setupData()

private setupData() : mixed
Return values
mixed

setupPeriod()

private setupPeriod() : mixed
Return values
mixed

setupRooms()

private setupRooms() : mixed
Return values
mixed

Search results