class manager

Properties

protected config $config
protected db_text $config_text
protected service_collection $reparsers
protected array $resume_data

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
__construct(config $config, db_text $config_text, service_collection $reparsers)

Constructor

Parameters

config $config
db_text $config_text
service_collection $reparsers

at line 59
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
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
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
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
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.