BookingsQuery
in package

Table of Contents

$foundIds  : array<string|int, int>
$inputArgs  : array<string|int, mixed>
$queryArgs  : WP_Error|array<string|int, mixed>
__construct()  : mixed
filterByRoomType()  : self
getErrorMessage()  : string
getIds()  : array<string|int, int>
getInputs()  : array<string|int, mixed>
hasErrors()  : bool
query()  : self
parseQuery()  : WP_Error|array<string|int, mixed>
validate()  : array<string|int, mixed>

Properties

$foundIds

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

$inputArgs

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

$queryArgs

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

Methods

__construct()

public __construct(array<string|int, mixed> $args) : mixed
Parameters
$args : array<string|int, mixed>

Use mphb_clean() before passing arguments here.

Return values
mixed

filterByRoomType()

public filterByRoomType(int $roomTypeId) : self
Parameters
$roomTypeId : int
Tags
global

\wpdb $wpdb

Return values
self

getErrorMessage()

public getErrorMessage() : string
Return values
string

getIds()

public getIds() : array<string|int, int>
Return values
array<string|int, int>

getInputs()

public getInputs() : array<string|int, mixed>
Return values
array<string|int, mixed>

Input arguments: "status", "start_date" etc.

hasErrors()

public hasErrors() : bool
Return values
bool

query()

public query() : self
Return values
self

parseQuery()

protected parseQuery(array<string|int, mixed> $args) : WP_Error|array<string|int, mixed>
Parameters
$args : array<string|int, mixed>
Tags
since
3.7.0

added new filter - "mphb_export_bookings_start_date_meta_query".

since
3.7.0

added new filter - "mphb_export_bookings_end_date_meta_query".

since
3.7.0

added new filter - "mphb_export_bookings_query_args".

Return values
WP_Error|array<string|int, mixed>

validate()

protected validate(array<string|int, mixed> $args) : array<string|int, mixed>
Parameters
$args : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results