BookingStep
extends Step
in package
Fourth step.
Table of Contents
- $allowRedirect : mixed
- $booking : Booking|null
- $checkInDate : DateTime|null
- $checkOutDate : DateTime|null
- $customer : Customer|null
- $id : mixed
- $isValidStep : bool
- $name : mixed
- $nextUrl : mixed
- $parseErrors : array<string|int, mixed>
- __construct() : mixed
- createCustomer() : int|WP_Error
- disableRedirect() : mixed
- isValidStep() : mixed
- printDateHiddenFields() : mixed
- printQueryHiddenFields() : mixed
- render() : mixed
- setNextUrl() : mixed
- setup() : mixed
- _exit() : mixed
- parseAdults() : int
- parseBooking() : Booking|null
- parseCheckInDate() : DateTime|null
- parseCheckOutDate() : DateTime|null
- parseChildren() : int
- parseCustomer() : Customer|null
- parseError() : mixed
- parseFields() : mixed
- parseInput() : mixed
- parseRoomTypeId() : int
- renderInvalid() : mixed
- renderValid() : mixed
Properties
$allowRedirect
protected
mixed
$allowRedirect
= true
$booking
protected
Booking|null
$booking
= null
$checkInDate
protected
DateTime|null
$checkInDate
= null
$checkOutDate
protected
DateTime|null
$checkOutDate
= null
$customer
protected
Customer|null
$customer
= null
$id
protected
mixed
$id
= ''
$isValidStep
protected
bool
$isValidStep
= false
$name
protected
mixed
$name
= 'abstract'
$nextUrl
protected
mixed
$nextUrl
= ''
$parseErrors
protected
array<string|int, mixed>
$parseErrors
= array()
Methods
__construct()
public
__construct() : mixed
Return values
mixed —createCustomer()
public
createCustomer() : int|WP_Error
Tags
Return values
int|WP_Error —disableRedirect()
public
disableRedirect() : mixed
Return values
mixed —isValidStep()
public
isValidStep() : mixed
Return values
mixed —printDateHiddenFields()
public
printDateHiddenFields() : mixed
Return values
mixed —printQueryHiddenFields()
public
printQueryHiddenFields() : mixed
Return values
mixed —render()
public
render() : mixed
Return values
mixed —setNextUrl()
public
setNextUrl(mixed $url) : mixed
Parameters
- $url : mixed
Return values
mixed —setup()
public
setup() : mixed
Return values
mixed —_exit()
protected
_exit() : mixed
Return values
mixed —parseAdults()
protected
parseAdults(int $input) : int
Parameters
- $input : int
-
INPUT_POST (0) or INPUT_GET (1)
Return values
int —parseBooking()
protected
parseBooking(int $input) : Booking|null
Parameters
- $input : int
-
INPUT_POST (0) or INPUT_GET (1)
Return values
Booking|null —parseCheckInDate()
protected
parseCheckInDate(int $input) : DateTime|null
Parameters
- $input : int
-
INPUT_POST (0) or INPUT_GET (1)
Return values
DateTime|null —parseCheckOutDate()
protected
parseCheckOutDate(int $input) : DateTime|null
Parameters
- $input : int
-
INPUT_POST (0) or INPUT_GET (1)
Return values
DateTime|null —parseChildren()
protected
parseChildren(int $input) : int
Parameters
- $input : int
-
INPUT_POST (0) or INPUT_GET (1)
Return values
int —parseCustomer()
protected
parseCustomer(int $inputType) : Customer|null
Parameters
- $inputType : int
-
INPUT_POST (0) or INPUT_GET (1)
Return values
Customer|null —parseError()
protected
parseError(mixed $message) : mixed
Parameters
- $message : mixed
Return values
mixed —parseFields()
protected
parseFields() : mixed
Return values
mixed —parseInput()
protected
parseInput() : mixed
Return values
mixed —parseRoomTypeId()
protected
parseRoomTypeId(int $input) : int
Parameters
- $input : int
-
INPUT_POST (0) or INPUT_GET (1)
Return values
int —renderInvalid()
protected
renderInvalid() : mixed
Return values
mixed —renderValid()
protected
renderValid() : mixed