Class \Prado\Util\Cron\TCronTask
TCronTask class.
TCronTask is the base class for all cron tasks. Subclasses need to implement the abstract method execute to run tasks. If a task is not run at the schedule time, it is run at the next available task sweep.
Class hierarchy
Author: Brad Anderson <belisoful@icloud.com>Since: 4.2.0
public
abstract
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
resetTaskLastExecTime() : mixed
Resets the lastExecTime to either null or, if there is a next trigger
time from time(), sets lastExecTime to now. This prevents erroneously
triggering repeating tasks on first cron from existing prior triggers
from time=0.
|
public
|
setLastExecTime(numeric-string|int|float $v) : mixed
sometimes floats don't output correctly to 6 significant figures (microtime).
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
_getZappableSleepProps(array<string|int, mixed> &$exprops) : mixed
Returns an array with the names of all variables of this object that should NOT be serialized
because their value is the default one or useless to be cached for the next load.
Reimplement in derived classes to add new variables, but remember to also to call the parent implementation first. |
\Prado\TApplicationComponent::FX_CACHE_FILE, \Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |