CronManager
in package
Tags
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
CRON_DELETE_DRAFT_BOOKINGS
public
mixed
CRON_DELETE_DRAFT_BOOKINGS
= 'delete_draft_bookings'
Tags
CRON_SEND_NOTIFICATIONS
public
mixed
CRON_SEND_NOTIFICATIONS
= 'send_notifications'
Tags
INTERVAL_DAILY
public
mixed
INTERVAL_DAILY
= 'daily'
Tags
INTERVAL_DELETE_DRAFT_BOOKINGS
public
mixed
INTERVAL_DELETE_DRAFT_BOOKINGS
= 'mpa_delete_draft_bookings_interval'
Tags
INTERVAL_HOURLY
public
mixed
INTERVAL_HOURLY
= 'hourly'
Tags
INTERVAL_PENDING_PAYMENT
public
mixed
INTERVAL_PENDING_PAYMENT
= 'mpa_pending_payment_interval'
Tags
INTERVAL_SEND_NOTIFICATIONS
public
mixed
INTERVAL_SEND_NOTIFICATIONS
= 'mpa_send_notifications_interval'
Tags
INTERVAL_TWICE_DAILY
public
mixed
INTERVAL_TWICE_DAILY
= 'twicedaily'
Tags
Properties
$crons
protected
array<string|int, AbstractCron>
$crons
= []
Tags
Methods
__construct()
public
__construct() : mixed
Tags
Return values
mixed —abandonPendingPaymentCron()
public
abandonPendingPaymentCron() : AbandonPendingPaymentCron
Tags
Return values
AbandonPendingPaymentCron —addCron()
public
addCron(string $cronId, AbstractCron $cron) : mixed
Parameters
- $cronId : string
-
Unprefixed cron ID.
- $cron : AbstractCron
Tags
Return values
mixed —addCrons()
public
addCrons(array<string|int, AbstractCron> $crons) : mixed
Parameters
- $crons : array<string|int, AbstractCron>
Tags
Return values
mixed —autorun()
Automatically start crons that should always be running.
public
autorun() : mixed
Tags
Return values
mixed —deleteDraftBookingsCron()
public
deleteDraftBookingsCron() : DeleteDraftBookingsCron
Tags
Return values
DeleteDraftBookingsCron —filterIntervals()
public
filterIntervals(array<string|int, mixed> $schedules) : array<string|int, mixed>
Parameters
- $schedules : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getCron()
public
getCron(string $cronId) : AbstractCron|null
Parameters
- $cronId : string
Tags
Return values
AbstractCron|null —load()
public
load() : mixed
Tags
Return values
mixed —sendNotificationsCron()
public
sendNotificationsCron() : SendNotificationsCron
Tags
Return values
SendNotificationsCron —addHooks()
protected
addHooks() : mixed