CronManager
in package

Tags
since
1.5.0

Table of Contents

CRON_ABANDON_PENDING_PAYMENT  = 'abandon_pending_payment'
CRON_DELETE_DRAFT_BOOKINGS  = 'delete_draft_bookings'
CRON_SEND_NOTIFICATIONS  = 'send_notifications'
INTERVAL_DAILY  = 'daily'
INTERVAL_DELETE_DRAFT_BOOKINGS  = 'mpa_delete_draft_bookings_interval'
INTERVAL_HOURLY  = 'hourly'
INTERVAL_PENDING_PAYMENT  = 'mpa_pending_payment_interval'
INTERVAL_SEND_NOTIFICATIONS  = 'mpa_send_notifications_interval'
INTERVAL_TWICE_DAILY  = 'twicedaily'
$crons  : array<string|int, AbstractCron>
__construct()  : mixed
abandonPendingPaymentCron()  : AbandonPendingPaymentCron
addCron()  : mixed
addCrons()  : mixed
autorun()  : mixed
Automatically start crons that should always be running.
deleteDraftBookingsCron()  : DeleteDraftBookingsCron
filterIntervals()  : array<string|int, mixed>
getCron()  : AbstractCron|null
load()  : mixed
sendNotificationsCron()  : SendNotificationsCron
addHooks()  : mixed

Constants

CRON_ABANDON_PENDING_PAYMENT

public mixed CRON_ABANDON_PENDING_PAYMENT = 'abandon_pending_payment'
Tags
since
1.5.0

CRON_DELETE_DRAFT_BOOKINGS

public mixed CRON_DELETE_DRAFT_BOOKINGS = 'delete_draft_bookings'
Tags
since
1.15.0

CRON_SEND_NOTIFICATIONS

public mixed CRON_SEND_NOTIFICATIONS = 'send_notifications'
Tags
since
1.13.0

INTERVAL_DAILY

public mixed INTERVAL_DAILY = 'daily'
Tags
since
1.5.0

INTERVAL_DELETE_DRAFT_BOOKINGS

public mixed INTERVAL_DELETE_DRAFT_BOOKINGS = 'mpa_delete_draft_bookings_interval'
Tags
since
1.15.0

INTERVAL_HOURLY

public mixed INTERVAL_HOURLY = 'hourly'
Tags
since
1.5.0

INTERVAL_PENDING_PAYMENT

public mixed INTERVAL_PENDING_PAYMENT = 'mpa_pending_payment_interval'
Tags
since
1.5.0

INTERVAL_SEND_NOTIFICATIONS

public mixed INTERVAL_SEND_NOTIFICATIONS = 'mpa_send_notifications_interval'
Tags
since
1.13.0

INTERVAL_TWICE_DAILY

public mixed INTERVAL_TWICE_DAILY = 'twicedaily'
Tags
since
1.5.0

Properties

$crons

protected array<string|int, AbstractCron> $crons = []
Tags
since
1.5.0

Methods

__construct()

public __construct() : mixed
Tags
since
1.5.0
Return values
mixed

addCron()

public addCron(string $cronId, AbstractCron $cron) : mixed
Parameters
$cronId : string

Unprefixed cron ID.

$cron : AbstractCron
Tags
since
1.5.0
Return values
mixed

addCrons()

public addCrons(array<string|int, AbstractCron$crons) : mixed
Parameters
$crons : array<string|int, AbstractCron>
Tags
since
1.5.0
Return values
mixed

autorun()

Automatically start crons that should always be running.

public autorun() : mixed
Tags
since
1.13.0
Return values
mixed

filterIntervals()

public filterIntervals(array<string|int, mixed> $schedules) : array<string|int, mixed>
Parameters
$schedules : array<string|int, mixed>
Tags
since
1.5.0
access

protected

Return values
array<string|int, mixed>

getCron()

public getCron(string $cronId) : AbstractCron|null
Parameters
$cronId : string
Tags
since
1.5.0
Return values
AbstractCron|null

load()

public load() : mixed
Tags
since
1.5.0
Return values
mixed

addHooks()

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

Search results