TYPO3
7.6
|
Public Member Functions | |
setStart ($start) | |
getStart () | |
setEnd ($end) | |
getEnd () | |
setInterval ($interval) | |
getInterval () | |
setMultiple ($multiple) | |
getMultiple () | |
setCronCmd ($cmd) | |
getCronCmd () | |
setIsNewSingleExecution ($isNewSingleExecution) | |
getIsNewSingleExecution () | |
getNextExecution () | |
isStarted () | |
isEnded () | |
Protected Attributes | |
$start | |
$end | |
$interval | |
$multiple = false | |
$cronCmd | |
$isNewSingleExecution = false | |
This class manages the logic of a particular execution of a task
Definition at line 20 of file Execution.php.
getCronCmd | ( | ) |
Get the value of the cron command
Definition at line 169 of file Execution.php.
References Execution\$cronCmd.
getEnd | ( | ) |
This method is used to get the end date
Definition at line 106 of file Execution.php.
References Execution\$end.
getInterval | ( | ) |
This method is used to get the interval
Definition at line 127 of file Execution.php.
References Execution\$interval.
getIsNewSingleExecution | ( | ) |
Get whether this is a newly created single execution
Definition at line 197 of file Execution.php.
References Execution\$isNewSingleExecution.
Referenced by Execution\getNextExecution().
getMultiple | ( | ) |
This method is used to get the multiple execution flag
Definition at line 148 of file Execution.php.
References Execution\$multiple.
getNextExecution | ( | ) |
This method gets or calculates the next execution date
\OutOfBoundsException |
Definition at line 211 of file Execution.php.
References Execution\$end, Execution\$start, elseif, Execution\getIsNewSingleExecution(), Execution\isEnded(), Execution\isStarted(), and Execution\setIsNewSingleExecution().
getStart | ( | ) |
This method is used to get the start date
Definition at line 85 of file Execution.php.
References Execution\$start.
isEnded | ( | ) |
Checks if the schedule for a task is passed or not
Definition at line 275 of file Execution.php.
Referenced by Execution\getNextExecution().
isStarted | ( | ) |
Checks if the schedule for a task is started or not
Definition at line 265 of file Execution.php.
Referenced by Execution\getNextExecution().
setCronCmd | ( | $cmd | ) |
Set the value of the cron command
string | $cmd | Cron command, using cron-like syntax |
Definition at line 159 of file Execution.php.
setEnd | ( | $end | ) |
This method is used to set the end date
int | $end | End date (timestamp) |
Definition at line 96 of file Execution.php.
References Execution\$end.
setInterval | ( | $interval | ) |
This method is used to set the interval
int | $interval | Interval (in seconds) |
Definition at line 117 of file Execution.php.
References Execution\$interval.
setIsNewSingleExecution | ( | $isNewSingleExecution | ) |
Set whether this is a newly created single execution. This is necessary for the following reason: if a new single-running task is created and its start date is in the past (even for only a few seconds), the next run time calculation (which happens upon saving) will disable that task, because it was meant to run only once and is in the past. Setting this flag to TRUE preserves this task for a single run. Upon next execution, this flag is set to FALSE.
bool | $isNewSingleExecution | Is newly created single execution? |
Definition at line 187 of file Execution.php.
References Execution\$isNewSingleExecution.
Referenced by Execution\getNextExecution().
setMultiple | ( | $multiple | ) |
This method is used to set the multiple execution flag
bool | $multiple | TRUE if concurrent executions are allowed, FALSE otherwise |
Definition at line 138 of file Execution.php.
References Execution\$multiple.
setStart | ( | $start | ) |
This method is used to set the start date
int | $start | Start date (timestamp) |
Definition at line 75 of file Execution.php.
References Execution\$start.
|
protected |
Definition at line 55 of file Execution.php.
Referenced by Execution\getCronCmd().
|
protected |
Definition at line 34 of file Execution.php.
Referenced by Execution\getEnd(), Execution\getNextExecution(), and Execution\setEnd().
|
protected |
Definition at line 41 of file Execution.php.
Referenced by Execution\getInterval(), and Execution\setInterval().
|
protected |
Definition at line 64 of file Execution.php.
Referenced by Execution\getIsNewSingleExecution(), and Execution\setIsNewSingleExecution().
|
protected |
Definition at line 48 of file Execution.php.
Referenced by Execution\getMultiple(), and Execution\setMultiple().
|
protected |
Definition at line 27 of file Execution.php.
Referenced by Execution\getNextExecution(), Execution\getStart(), and Execution\setStart().