EditBookingMenuPage extends AbstractMenuPage
in package

Tags
since
3.8

Table of Contents

$capability  : mixed
$currentStep  : string
$editBooking  : Booking|null
$errors  : array<string|int, string>
$menuSlug  : mixed
$menuTitle  : mixed
$name  : mixed
$nextStep  : string
$order  : mixed
$pageTitle  : mixed
$parentMenu  : mixed
$screenId  : mixed
$stepControl  : StepControl|null
$titleActions  : array<string|int, mixed>
Custom actions that output just after the page heading
__construct()  : mixed
addActions()  : mixed
addTitleAction()  : mixed
addTitleActionsScript()  : mixed
bookingRulesDisabledNotification()  : mixed
createMenu()  : mixed
getName()  : mixed
getUrl()  : mixed
isCurrentPage()  : bool
onLoad()  : mixed
render()  : mixed
detectStep()  : StepControl
findBooking()  : Booking
getBackUrl()  : string
getMenuTitle()  : string
getPageTitle()  : string
renderInvalid()  : mixed
renderValid()  : mixed

Properties

$capability

protected mixed $capability

$currentStep

protected string $currentStep = ''

$editBooking

protected Booking|null $editBooking = null

$errors

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

$menuSlug

protected mixed $menuSlug

$menuTitle

protected mixed $menuTitle

$name

protected mixed $name

$nextStep

protected string $nextStep = ''

$order

protected mixed $order

$pageTitle

protected mixed $pageTitle

$parentMenu

protected mixed $parentMenu

$screenId

protected mixed $screenId

$stepControl

protected StepControl|null $stepControl = null

$titleActions

Custom actions that output just after the page heading

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

Methods

__construct()

public __construct() : mixed
Return values
mixed

addActions()

public addActions() : mixed
Return values
mixed

addTitleAction()

public addTitleAction(mixed $label, mixed $url[, mixed $options = array() ]) : mixed
Parameters
$label : mixed
$url : mixed
$options : mixed = array()
Return values
mixed

addTitleActionsScript()

public addTitleActionsScript() : mixed
Return values
mixed

bookingRulesDisabledNotification()

public bookingRulesDisabledNotification() : mixed
Tags
since
3.9.9
Return values
mixed

createMenu()

public createMenu() : mixed
Return values
mixed

getName()

public getName() : mixed
Return values
mixed

getUrl()

public getUrl([mixed $moreArgs = array() ]) : mixed
Parameters
$moreArgs : mixed = array()
Return values
mixed

isCurrentPage()

public isCurrentPage([array<string|int, mixed> $atts = array() ]) : bool
Parameters
$atts : array<string|int, mixed> = array()
Tags
note

use function after admin_init hook (current_screen for ex.)

Return values
bool

onLoad()

public onLoad() : mixed
Return values
mixed

render()

public render() : mixed
Return values
mixed

detectStep()

protected detectStep() : StepControl
Return values
StepControl

findBooking()

protected findBooking() : Booking
Tags
throws
RuntimeException

If the booking is not set or not found.

Return values
Booking

getBackUrl()

protected getBackUrl() : string
Return values
string

Back URL or empty string "".

getMenuTitle()

protected getMenuTitle() : string
Return values
string

getPageTitle()

protected getPageTitle() : string
Return values
string

renderInvalid()

protected renderInvalid() : mixed
Return values
mixed

renderValid()

protected renderValid() : mixed
Return values
mixed

Search results