CronExpression::factory( string $expression, CronExpression_FieldFactory $fieldFactory = null )

Factory method to create a new CronExpression.


Description Description


Parameters Parameters

$expression

(Required) The CRON expression to create. There are several special predefined values which can be used to substitute the CRON expression: @yearly, @annually) - Run once a year, midnight, Jan. 1 - 0 0 1 1
* @monthly - Run once a month, midnight, first of month - 0 0 1
* * @weekly - Run once a week, midnight on Sun - 0 0
* * 0 @daily - Run once a day, midnight - 0 0
* *
* @hourly - Run once an hour, first minute - 0
* *
* *

$fieldFactory

(Optional) (optional) Field factory to use

Default value: null


Top ↑

Return Return

(CronExpression)


Top ↑

Source Source

File: packages/action-scheduler/lib/cron-expression/CronExpression.php


			


Top ↑

User Contributed Notes User Contributed Notes

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