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
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
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>