BookingConfirmationShortcode
extends AbstractShortcode
in package
Tags
Table of Contents
- NO_VALUE_PLACEHOLDER = '—'
- $name : mixed
- $payment : mixed
- __construct() : mixed
- addActions() : mixed
- detectBookingConfirmationStatus() : string|false
- detectPaymentConfirmationStatus() : string
- fetchBooking() : Booking|null
- fetchBookingFromPayment() : Booking|null
- fetchPayment() : Payment|null
- fetchPaymentByStripeSource() : Payment|null
- generateShortcode() : string
- getName() : mixed
- register() : mixed
- render() : mixed
- renderBookingConfirmation() : mixed
- renderBookingDetails() : string
- renderBottomInformation() : mixed
- renderPaymentConfirmation() : mixed
- renderPaymentDetails() : string
- renderPaymentInstructions() : string
- afterLoad() : mixed
- buildOrderQuery() : array<string|int, mixed>
Constants
NO_VALUE_PLACEHOLDER
public
mixed
NO_VALUE_PLACEHOLDER
= '—'
Properties
$name
protected
mixed
$name
= 'mphb_booking_confirmation'
$payment
protected
mixed
$payment
= null
Methods
__construct()
public
__construct() : mixed
Return values
mixed —addActions()
public
addActions() : mixed
Return values
mixed —detectBookingConfirmationStatus()
public
detectBookingConfirmationStatus() : string|false
Return values
string|false —detectPaymentConfirmationStatus()
public
detectPaymentConfirmationStatus() : string
Return values
string —Payment status or "none".
fetchBooking()
public
fetchBooking() : Booking|null
Return values
Booking|null —fetchBookingFromPayment()
public
fetchBookingFromPayment(Payment|null $payment) : Booking|null
Parameters
- $payment : Payment|null
Return values
Booking|null —fetchPayment()
public
fetchPayment() : Payment|null
Return values
Payment|null —fetchPaymentByStripeSource()
public
fetchPaymentByStripeSource() : Payment|null
Return values
Payment|null —generateShortcode()
public
generateShortcode([array<string|int, mixed> $attrs = array() ]) : string
Parameters
- $attrs : array<string|int, mixed> = array()
-
Attributes of shortcode
Return values
string —getName()
public
getName() : mixed
Return values
mixed —register()
public
register() : mixed
Return values
mixed —render()
public
render(mixed $atts, mixed $content, mixed $shortcodeName) : mixed
Parameters
- $atts : mixed
- $content : mixed
- $shortcodeName : mixed
Return values
mixed —renderBookingConfirmation()
public
renderBookingConfirmation() : mixed
Return values
mixed —renderBookingDetails()
public
renderBookingDetails(Booking|null $booking) : string
Parameters
- $booking : Booking|null
Return values
string —renderBottomInformation()
public
renderBottomInformation() : mixed
Return values
mixed —renderPaymentConfirmation()
public
renderPaymentConfirmation() : mixed
Return values
mixed —renderPaymentDetails()
public
renderPaymentDetails(Payment|null $payment) : string
Parameters
- $payment : Payment|null
Return values
string —renderPaymentInstructions()
public
renderPaymentInstructions(Payment|null $payment) : string
Parameters
- $payment : Payment|null
Return values
string —afterLoad()
protected
afterLoad() : mixed
Tags
Return values
mixed —buildOrderQuery()
protected
buildOrderQuery(array<string|int, mixed> $atts, array<string|int, mixed> $defaults) : array<string|int, mixed>
Parameters
- $atts : array<string|int, mixed>
-
Shortcode attributes.
- $defaults : array<string|int, mixed>
-
Default values of "orderby" and "order" attributes.