phpBB API Documentation
Class

phpbb\textreparser\manager

class manager

Methods

__construct(config $config, db_text $config_text, service_collection $reparsers)

Constructor

array get_resume_data(string $name)

Loads resume data from the database

update_resume_data(string $name, int $min, int $current, int $size, bool $update_db = true)

Updates the resume data in the database

schedule(string $name, int $interval)

Sets the interval for a text_reparser cron task

schedule_all(int $interval)

Sets the interval for all text_reparser cron tasks

string find_reparser(string $name)

Finds a reparser by name.

Details

at line 45
public __construct(config $config, db_text $config_text, service_collection $reparsers)

Constructor

Parameters

config $config
db_text $config_text
service_collection $reparsers

at line 59
public array get_resume_data(string $name)

Loads resume data from the database

Parameters

string $name Name of the reparser to which the resume data belongs

Return Value

array

at line 79
public update_resume_data(string $name, int $min, int $current, int $size, bool $update_db = true)

Updates the resume data in the database

Parameters

string $name Name of the reparser to which the resume data belongs
int $min Lowest record ID
int $current Current record ID
int $size Number of records to process at a time
bool $update_db True if the resume data should be written to the database, false if not. (default: true)

at line 105
public schedule(string $name, int $interval)

Sets the interval for a text_reparser cron task

Parameters

string $name Name of the reparser to schedule
int $interval Interval in seconds, 0 to disable the cron task

at line 118
public schedule_all(int $interval)

Sets the interval for all text_reparser cron tasks

Parameters

int $interval Interval in seconds, 0 to disable the cron task

at line 137
public string find_reparser(string $name)

Finds a reparser by name.

If there is no reparser with the specified name, null is returned.

Parameters

string $name Name of the reparser to look up.

Return Value

string A reparser service name, or null.