CronManager
in package

Table of Contents

INTERVAL_AUTODELETE_SYNC_LOGS  = 'mphb_ical_auto_delete'
INTERVAL_DAILY  = 'daily'
INTERVAL_HALF_AN_HOUR  = 'mphb_30m'
INTERVAL_HOURLY  = 'hourly'
INTERVAL_PENDING_PAYMENT  = 'mphb_pending_payment'
INTERVAL_PENDING_USER_APPROVAL  = 'mphb_pending_user_approval'
INTERVAL_QUARTER_AN_HOUR  = 'mphb_15m'
INTERVAL_TWICE_DAILY  = 'twicedaily'
$crons  : array<string|int, Cron>
__construct()  : mixed
addCron()  : mixed
createCronIntervals()  : array<string|int, mixed>
getCron()  : Cron|null
initCrons()  : mixed
rescheduleAutoSynchronization()  : mixed

Constants

INTERVAL_AUTODELETE_SYNC_LOGS

public mixed INTERVAL_AUTODELETE_SYNC_LOGS = 'mphb_ical_auto_delete'

INTERVAL_DAILY

public mixed INTERVAL_DAILY = 'daily'

INTERVAL_HALF_AN_HOUR

public mixed INTERVAL_HALF_AN_HOUR = 'mphb_30m'

INTERVAL_HOURLY

public mixed INTERVAL_HOURLY = 'hourly'

INTERVAL_PENDING_PAYMENT

public mixed INTERVAL_PENDING_PAYMENT = 'mphb_pending_payment'

INTERVAL_PENDING_USER_APPROVAL

public mixed INTERVAL_PENDING_USER_APPROVAL = 'mphb_pending_user_approval'

INTERVAL_QUARTER_AN_HOUR

public mixed INTERVAL_QUARTER_AN_HOUR = 'mphb_15m'

INTERVAL_TWICE_DAILY

public mixed INTERVAL_TWICE_DAILY = 'twicedaily'

Properties

$crons

private array<string|int, Cron> $crons = array()

Methods

__construct()

public __construct() : mixed
Return values
mixed

addCron()

public addCron(Cron $cron) : mixed
Parameters
$cron : Cron
Return values
mixed

createCronIntervals()

public createCronIntervals(array<string|int, mixed> $schedules) : array<string|int, mixed>
Parameters
$schedules : array<string|int, mixed>
Tags
since
3.6.1

added new interval - "Interval for automatic cleaning of synchronization logs".

since
3.6.1

added new interval - "Quarter an Hour".

since
3.6.1

added new interval - "Half an Hour".

Return values
array<string|int, mixed>

getCron()

public getCron(string $id) : Cron|null
Parameters
$id : string
Return values
Cron|null

initCrons()

public initCrons() : mixed
Tags
since
3.6.1

added new cron - DeleteOldSyncLogsCron.

Return values
mixed

rescheduleAutoSynchronization()

public rescheduleAutoSynchronization(bool $enable[, string $clock = '01:00' ][, string $interval = self::INTERVAL_DAILY ]) : mixed
Parameters
$enable : bool
$clock : string = '01:00'

Time in 12-hour or 24-hour format: "08:15 pm" or "20:15".

$interval : string = self::INTERVAL_DAILY

Cron interval name.

Return values
mixed

Search results