CheckoutStep extends Step
in package

Third step.

Table of Contents

NONCE_ACTION  = 'mphb-booking'
NONCE_FIELD  = 'mphb-checkout-nonce'
$booking  : Booking|null
$checkInDate  : DateTime|null
$checkOutDate  : DateTime|null
$id  : mixed
$isValidStep  : bool
$name  : mixed
$nextUrl  : mixed
$parseErrors  : array<string|int, mixed>
$rooms  : array<string|int, mixed>
[int room_id, int room_type_id, int rate_id, \MPHB\Entities\Rate[] allowed_rates, int adults, int children]
__construct()  : mixed
getBooking()  : Booking|null
isValidStep()  : mixed
printDateHiddenFields()  : mixed
printNonceFields()  : mixed
printQueryHiddenFields()  : mixed
render()  : mixed
setNextUrl()  : mixed
setup()  : mixed
parseAdults()  : int
parseCheckInDate()  : DateTime|null
parseCheckOutDate()  : DateTime|null
parseChildren()  : int
parseError()  : mixed
parseFields()  : mixed
parseInput()  : mixed
parseRooms()  : array<string|int, mixed>
parseRoomTypeId()  : int
renderInvalid()  : mixed
renderValid()  : mixed

Constants

NONCE_ACTION

public mixed NONCE_ACTION = 'mphb-booking'

NONCE_FIELD

public mixed NONCE_FIELD = 'mphb-checkout-nonce'

Properties

$booking

protected Booking|null $booking = null

$checkInDate

protected DateTime|null $checkInDate = null

$checkOutDate

protected DateTime|null $checkOutDate = 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()

$rooms

[int room_id, int room_type_id, int rate_id, \MPHB\Entities\Rate[] allowed_rates, int adults, int children]

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

Methods

__construct()

public __construct() : mixed
Return values
mixed

getBooking()

public getBooking() : Booking|null
Return values
Booking|null

isValidStep()

public isValidStep() : mixed
Return values
mixed

printDateHiddenFields()

public printDateHiddenFields() : mixed
Return values
mixed

printNonceFields()

public printNonceFields() : 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

parseAdults()

protected parseAdults(int $input) : int
Parameters
$input : int

INPUT_POST (0) or INPUT_GET (1)

Return values
int

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

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

parseRooms()

protected parseRooms(int $input) : array<string|int, mixed>
Parameters
$input : int

INPUT_POST (0) or INPUT_GET (1)

Return values
array<string|int, 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
Return values
mixed

Search results