Schedule
class Schedule (View source)
Traits
Properties
protected integer | $id | from BaseEntityTrait | |
protected string | $name | ||
protected Request | $request | from RequestEntityTrait | |
protected string | $description | ||
protected string | $minute | ||
protected string | $hour | ||
protected string | $day | ||
protected string | $month | ||
protected string | $weekday | ||
protected string | $year | ||
protected boolean | $enabled | ||
protected datetime | $firstrun | ||
protected datetime | $lastrun |
Methods
array
toArray()
Returns the properties of this object as an array for ease of use
from BaseEntityTrait
from RequestEntityTrait
string
getDescription()
Get a brief job description
setDescription(string $description)
Set brief job description
string
getExpression()
Get cron expression of this schedule
setExpression(CronExpression $expression)
set cron expression for this schedule
bool
getEnabled()
True if job is currently enabled
setEnabled($enabled)
Set enable/disable status
getFirstrun()
Get the first-run-date of job
getLastrun()
Get the first-run-date of job
buildExpression()
No description
Details
in BaseEntityTrait at line 42
integer
getId()
Get queue item's id
in BaseEntityTrait at line 54
Schedule
setId(string $id)
Set queue item's id
in BaseEntityTrait at line 67
string
getName()
Get queue item's name
in BaseEntityTrait at line 79
Schedule
setName(string $name)
Set queue item's name
in BaseEntityTrait at line 92
array
toArray()
Returns the properties of this object as an array for ease of use
in RequestEntityTrait at line 35
Request
getRequest()
Get desired process niceness
in RequestEntityTrait at line 47
RequestEntityTrait
setRequest(Request $request)
Set desired process niceness
at line 116
string
getDescription()
Get a brief job description
at line 141
string
getExpression()
Get cron expression of this schedule
at line 153
Schedule
setExpression(CronExpression $expression)
set cron expression for this schedule
at line 171
bool
getEnabled()
True if job is currently enabled