reparser
class reparser extends base
Reparse text cron task
Constants
MIN |
|
SIZE |
|
Properties
protected config | $config | ||
protected db_text | $config_text | ||
protected db | $reparse_lock | ||
protected manager | $reparser_manager | ||
protected string | $reparser_name | ||
protected service_collection | $reparsers | ||
protected array | $resume_data |
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.
__construct(config $config, db_text $config_text, db $reparse_lock, manager $reparser_manager, service_collection $reparsers)
Constructor
set_reparser(string $reparser)
Sets the reparser for this cron task
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 95
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 113
bool
should_run()
Returns whether this cron task should run now, because enough time has passed since it was last run.
at line 68
__construct(config $config, db_text $config_text, db $reparse_lock, manager $reparser_manager, service_collection $reparsers)
Constructor
at line 82
set_reparser(string $reparser)
Sets the reparser for this cron task
at line 136
null
run()
Runs this cron task.