ActionScheduler_CronSchedule::__construct( DateTime $start, CronExpression|string $recurrence, DateTime|null $first = null )

Wrapper for parent constructor to accept a cron expression string and map it to a CronExpression for this objects $recurrence property.


Description Description


Parameters Parameters

$start

(Required) The date & time to run the action at or after. If $start aligns with the CronSchedule passed via $recurrence, it will be used. If it does not align, the first matching date after it will be used.

$recurrence

(Required) The CronExpression used to calculate the schedule's next instance.

$first

(Optional) (Optional) The date & time the first instance of this interval schedule ran. Default null, meaning this is the first instance.

Default value: null


Top ↑

Source Source

File: packages/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.