BookingCancellationAction
in package

Table of Contents

QUERY_ACTION  = 'cancel_booking'
STATUS_ALREADY_CANCELLED  = 'already-cancelled'
STATUS_CANCELLATION_NOT_POSSIBLE  = 'cancellation-not-possible'
STATUS_CANCELLATION_POSSIBLE  = 'cancellation-possible'
STATUS_CANCELLED  = 'cancelled'
STATUS_INVALID_REQUEST  = 'invalid-request'
STEP_CONFIRMED_BY_USER  = 'cancellation-step-confirmed-by-user'
STEP_USER_CONFIRM  = 'cancellation-step-user-confirm'
$booking  : Booking
__construct()  : mixed
bookingConfirmCancellationPageExists()  : mixed
cancellBooking()  : mixed
checkCancellation()  : mixed
generateLink()  : string
getStatus()  : string
redirectIfCanNotBeCancelled()  : mixed
redirectToConfirmCancellationPage()  : mixed
issetRequiredParameters()  : bool
parseRequest()  : bool
redirectWithStatus()  : mixed

Constants

QUERY_ACTION

public mixed QUERY_ACTION = 'cancel_booking'

STATUS_ALREADY_CANCELLED

public mixed STATUS_ALREADY_CANCELLED = 'already-cancelled'

STATUS_CANCELLATION_NOT_POSSIBLE

public mixed STATUS_CANCELLATION_NOT_POSSIBLE = 'cancellation-not-possible'

STATUS_CANCELLATION_POSSIBLE

public mixed STATUS_CANCELLATION_POSSIBLE = 'cancellation-possible'
Tags
since
3.9.9

STATUS_CANCELLED

public mixed STATUS_CANCELLED = 'cancelled'

STATUS_INVALID_REQUEST

public mixed STATUS_INVALID_REQUEST = 'invalid-request'

STEP_CONFIRMED_BY_USER

public mixed STEP_CONFIRMED_BY_USER = 'cancellation-step-confirmed-by-user'

STEP_USER_CONFIRM

public mixed STEP_USER_CONFIRM = 'cancellation-step-user-confirm'

Properties

$booking

private Booking $booking

Methods

__construct()

public __construct() : mixed
Return values
mixed

bookingConfirmCancellationPageExists()

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

cancellBooking()

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

checkCancellation()

public checkCancellation() : mixed
Return values
mixed
public generateLink(Booking $booking[, mixed $step = '' ]) : string
Parameters
$booking : Booking
$step : mixed = ''
Return values
string

getStatus()

public getStatus() : string
Tags
since
3.9.9
Return values
string

redirectIfCanNotBeCancelled()

public redirectIfCanNotBeCancelled(string $status) : mixed
Parameters
$status : string
Tags
since
3.9.9
Return values
mixed

redirectToConfirmCancellationPage()

protected redirectToConfirmCancellationPage(mixed $pageId[, mixed $status = '' ]) : mixed
Parameters
$pageId : mixed
$status : mixed = ''
Return values
mixed

issetRequiredParameters()

private issetRequiredParameters() : bool
Return values
bool

parseRequest()

private parseRequest() : bool
Return values
bool

redirectWithStatus()

private redirectWithStatus(mixed $status[, mixed $pageUrl = '' ]) : mixed
Parameters
$status : mixed
$pageUrl : mixed = ''
Return values
mixed

Search results