DeleteDraftBookingsCron extends AbstractCron
in package

Tags
since
1.15.0

Table of Contents

BOOKING_EXPIRED_LIMIT  = 30
$action  : string
$id  : string
Unprefixed cron ID.
$interval  : string
Interval ID, like 'daily' or 'mpa_pending_payment'.
$prefixedId  : string
Prefixed cron ID.
$priority  : int
Do action / run priority.
__construct()  : mixed
getAction()  : string
getId()  : string
getInterval()  : string
getNextScheduleTime()  : int|false
getTimeToNextSchedule()  : int
isScheduled()  : bool
reschedule()  : bool
An alias of schedule().
run()  : mixed
schedule()  : bool
scheduleAt()  : bool
unschedule()  : bool
addHooks()  : mixed
deleteAutoDraftBookings()  : mixed
getAutoDraftBookings()  : array<string|int, int>

Constants

BOOKING_EXPIRED_LIMIT

public mixed BOOKING_EXPIRED_LIMIT = 30

Properties

$action

protected string $action = ''
Tags
since
1.5.0
example

'mpa_abandon_pending_payment_cron'

$id

Unprefixed cron ID.

protected string $id = ''
Tags
since
1.5.0
example

'abandon_pending_payment'

$interval

Interval ID, like 'daily' or 'mpa_pending_payment'.

protected string $interval = ''
Tags
since
1.5.0

$prefixedId

Prefixed cron ID.

protected string $prefixedId = ''
Tags
since
1.5.0
example

'mpa_abandon_pending_payment'

$priority

Do action / run priority.

protected int $priority = 10
Tags
since
1.5.0

Methods

__construct()

public __construct(string $cronId[, string $interval = 'daily' ][, mixed $priority = 10 ]) : mixed
Parameters
$cronId : string
$interval : string = 'daily'

Cron interval ID.

$priority : mixed = 10
Tags
since
1.5.0
Return values
mixed

getAction()

public getAction() : string
Tags
since
1.5.0
Return values
string

getId()

public getId() : string
Tags
since
1.5.0
Return values
string

getInterval()

public getInterval() : string
Tags
since
1.5.0
Return values
string

getNextScheduleTime()

public getNextScheduleTime() : int|false
Tags
since
1.5.0
Return values
int|false

False if the cron is not scheduled.

getTimeToNextSchedule()

public getTimeToNextSchedule() : int
Tags
since
1.5.0
Return values
int

Time to the next schedule (seconds).

isScheduled()

public isScheduled() : bool
Tags
since
1.5.0
Return values
bool

reschedule()

An alias of schedule().

public reschedule() : bool
Tags
since
1.5.0
Return values
bool

run()

public run() : mixed
Return values
mixed

schedule()

public schedule() : bool
Tags
since
1.5.0
Return values
bool

scheduleAt()

public scheduleAt(int $timestamp) : bool
Parameters
$timestamp : int
Tags
since
1.5.0
Return values
bool

unschedule()

public unschedule() : bool
Tags
since
1.5.0
Return values
bool

addHooks()

protected addHooks() : mixed
Tags
since
1.5.0
Return values
mixed

deleteAutoDraftBookings()

protected deleteAutoDraftBookings() : mixed
Return values
mixed

getAutoDraftBookings()

protected getAutoDraftBookings(int $expiredMinutes) : array<string|int, int>
Parameters
$expiredMinutes : int
Return values
array<string|int, int>

Search results