Statuses extends Statuses
in package

Table of Contents

STATUS_ABANDONED  = 'abandoned'
STATUS_AUTO_DRAFT  = 'auto-draft'
STATUS_CANCELLED  = 'cancelled'
STATUS_CONFIRMED  = 'confirmed'
STATUS_PENDING  = 'pending'
STATUS_PENDING_PAYMENT  = 'pending-payment'
STATUS_PENDING_USER  = 'pending-user'
$postType  : mixed
$statuses  : mixed
__construct()  : mixed
getAvailableRoomStatuses()  : array<string|int, mixed>
getBookedRoomStatuses()  : array<string|int, mixed>
getDefaultNewBookingStatus()  : string
getFailedStatuses()  : array<string|int, mixed>
getLabels()  : mixed
getLockedRoomStatuses()  : array<string|int, mixed>
getPendingRoomStatuses()  : array<string|int, mixed>
getStatusArgs()  : mixed
getStatuses()  : array<string|int, mixed>
registerStatuses()  : mixed
transitionStatus()  : mixed
TODO move expiration functionality to action handler
initStatuses()  : mixed

Constants

STATUS_ABANDONED

public mixed STATUS_ABANDONED = 'abandoned'

STATUS_AUTO_DRAFT

public mixed STATUS_AUTO_DRAFT = 'auto-draft'

STATUS_CANCELLED

public mixed STATUS_CANCELLED = 'cancelled'

STATUS_CONFIRMED

public mixed STATUS_CONFIRMED = 'confirmed'

STATUS_PENDING

public mixed STATUS_PENDING = 'pending'

STATUS_PENDING_PAYMENT

public mixed STATUS_PENDING_PAYMENT = 'pending-payment'

STATUS_PENDING_USER

public mixed STATUS_PENDING_USER = 'pending-user'

Properties

$postType

protected mixed $postType

$statuses

protected mixed $statuses = array()

Methods

__construct()

public __construct(mixed $postType) : mixed
Parameters
$postType : mixed
Return values
mixed

getAvailableRoomStatuses()

public getAvailableRoomStatuses() : array<string|int, mixed>
Return values
array<string|int, mixed>

getBookedRoomStatuses()

public getBookedRoomStatuses() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDefaultNewBookingStatus()

public getDefaultNewBookingStatus() : string
Return values
string

getFailedStatuses()

public getFailedStatuses() : array<string|int, mixed>
Tags
since
3.7.6
Return values
array<string|int, mixed>

getLabels()

public getLabels() : mixed
Return values
mixed

getLockedRoomStatuses()

public getLockedRoomStatuses() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPendingRoomStatuses()

public getPendingRoomStatuses() : array<string|int, mixed>
Return values
array<string|int, mixed>

getStatusArgs()

public getStatusArgs(mixed $statusName) : mixed
Parameters
$statusName : mixed
Return values
mixed

getStatuses()

public getStatuses() : array<string|int, mixed>
Return values
array<string|int, mixed>

registerStatuses()

public registerStatuses() : mixed
Return values
mixed

transitionStatus()

TODO move expiration functionality to action handler

public transitionStatus(string $newStatus, string $oldStatus, WP_Post $post) : mixed
Parameters
$newStatus : string
$oldStatus : string
$post : WP_Post
Return values
mixed

initStatuses()

protected initStatuses() : mixed
Return values
mixed

Search results