PHP Класс phpbb\textreparser\manager

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$config phpbb\config\config
$config_text phpbb\config\db_text
$reparsers phpbb\di\service_collection
$resume_data array

Открытые методы

Метод Описание
__construct ( phpbb\config\config $config, phpbb\config\db_text $config_text, phpbb\di\service_collection $reparsers ) Constructor
find_reparser ( string $name ) : string Finds a reparser by name.
get_resume_data ( string $name ) : array Loads resume data from the database
schedule ( string $name, integer $interval ) Sets the interval for a text_reparser cron task
schedule_all ( integer $interval ) Sets the interval for all text_reparser cron tasks
update_resume_data ( string $name, integer $min, integer $current, integer $size, boolean $update_db = true ) Updates the resume data in the database

Описание методов

__construct() публичный метод

Constructor
public __construct ( phpbb\config\config $config, phpbb\config\db_text $config_text, phpbb\di\service_collection $reparsers )
$config phpbb\config\config
$config_text phpbb\config\db_text
$reparsers phpbb\di\service_collection

find_reparser() публичный метод

If there is no reparser with the specified name, null is returned.
public find_reparser ( string $name ) : string
$name string Name of the reparser to look up.
Результат string A reparser service name, or null.

get_resume_data() публичный метод

Loads resume data from the database
public get_resume_data ( string $name ) : array
$name string Name of the reparser to which the resume data belongs
Результат array

schedule() публичный метод

Sets the interval for a text_reparser cron task
public schedule ( string $name, integer $interval )
$name string Name of the reparser to schedule
$interval integer Interval in seconds, 0 to disable the cron task

schedule_all() публичный метод

Sets the interval for all text_reparser cron tasks
public schedule_all ( integer $interval )
$interval integer Interval in seconds, 0 to disable the cron task

update_resume_data() публичный метод

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

Описание свойств

$config защищенное свойство

protected config,phpbb\config $config
Результат phpbb\config\config

$config_text защищенное свойство

protected db_text,phpbb\config $config_text
Результат phpbb\config\db_text

$reparsers защищенное свойство

protected service_collection,phpbb\di $reparsers
Результат phpbb\di\service_collection

$resume_data защищенное свойство

protected array $resume_data
Результат array