prune_notifications
class prune_notifications extends base
Prune notifications cron task.
Properties
protected | $config | ||
protected | $notification_manager |
Methods
bool
is_runnable()
Returns whether this cron task can run, given current board configuration.
bool
should_run()
Returns whether this cron task should run now, because enough time has passed since it was last run.
null
run()
Runs this cron task.
Details
in
base at line 34
string
get_name()
Returns the name of the task.
in
base at line 44
set_name(string $name)
Sets the name of the task.
at line 49
bool
is_runnable()
Returns whether this cron task can run, given current board configuration.
For example, a cron task that prunes forums can only run when forum pruning is enabled.
at line 57
bool
should_run()
Returns whether this cron task should run now, because enough time has passed since it was last run.
at line 39
null
run()
Runs this cron task.