Class \Prado\Util\Cron\TCronMethodTask
TCronMethodTask class.
This class will evaluate a specific method with parameters when running the task the specified module.
<job schedule="* * * * *" task="dbcache->flushCacheExpired(true)" / >
<job schedule="* * * * *" task="dbcache->flushCacheExpired" / >
<job schedule="* * * * *" task="amodule->taskmethod($this->getModule()->getProperty())" / >
The parenthesis may be omitted, or parameters may be functions themselves.
Class hierarchy
- \Prado\Util\Cron\TCronMethodTask
- \Prado\Util\Cron\TCronTask
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 4.2.0
public
|
|
public
|
execute(TCronModule $cron) : mixed
implements task to get the module from $_moduleId, then run $_method on it
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
\Prado\TApplicationComponent::FX_CACHE_FILE, \Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |