phpBB API Documentation
Class

phpbb\cron\task\text_reparser\reparser

class reparser extends base

Reparse text cron task

Constants

MIN

SIZE

Methods

string get_name()

Returns the name of the task.

from base
set_name(string $name)

Sets the name of the task.

from base
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
public string get_name()

Returns the name of the task.

Return Value

string Name of wrapped task.

in base at line 44
public set_name(string $name)

Sets the name of the task.

Parameters

string $name The task name

at line 95
public 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.

Return Value

bool

at line 113
public bool should_run()

Returns whether this cron task should run now, because enough time has passed since it was last run.

Return Value

bool

at line 68
public __construct(config $config, db_text $config_text, db $reparse_lock, manager $reparser_manager, service_collection $reparsers)

Constructor

Parameters

config $config
db_text $config_text
db $reparse_lock
manager $reparser_manager
service_collection $reparsers

at line 82
public set_reparser(string $reparser)

Sets the reparser for this cron task

Parameters

string $reparser

at line 136
public null run()

Runs this cron task.

Return Value

null