An interface to define how tasks should work.
package |
CMS |
---|---|
license |
GPL |
since | 1.8 |
get_name() : string
string
get_description() : string
string
test(integer $time = '')
integer
$timeThe time at which any comparisons for execution should be performed. If empty the current time is assumed.
execute(integer $time = '') : boolean
integer
$timeThe time at which the task should consider the execution occurred at. Assume the current time if empty.
boolean
TRUE on success, FALSE otherwise.
on_success(integer $time = '')
This method is called after the execute step if the execute step returned TRUE.
integer
$timeThe time at which the task should consider the execution occurred at. Assume the current time if empty.
on_failure(integer $time = '')
This method is called after the execute step if the execute step returned FALSE.
integer
$timeThe time at which the task should consider the execution occurred at. Assume the current time if empty.