queue
class queue extends base
Queue cron task. Sends email and jabber messages queued by other scripts.
Properties
protected | $config | var config |
|
protected | $queue | var \phpbb\messenger\queue |
|
protected | $queue_cache_file | var string |
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 63
bool
is_runnable()
Returns whether this cron task can run, given current board configuration.
Queue task is only run if the email queue (file) exists.
at line 76
bool
should_run()
Returns whether this cron task should run now, because enough time has passed since it was last run.
The interval between queue runs is specified in board configuration.
at line 51
null
run()
Runs this cron task.