SendNotificationsCron extends AbstractCron
in package

Tags
since
1.13.0

Table of Contents

$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

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

Search results