class reparse extends command

Properties

protected user $user from  command
protected InputInterface $input
protected SymfonyStyle $io
protected OutputInterface $output
protected db $reparse_lock
protected manager $reparser_manager
protected service_collection $reparsers
protected array $resume_data

Methods

__construct(user $user, db $reparse_lock, manager $reparser_manager, service_collection $reparsers)

Constructor

ProgressBar
create_progress_bar(int $max, SymfonyStyle $io, OutputInterface $output, bool $message = false)

Create a styled progress bar

from  command
void
configure()

Sets the command name and description

int
execute(InputInterface $input, OutputInterface $output)

Executes the command reparser:reparse

int
get_option(string $option_name)

Get an option value, adjusted for given reparser

reparse(string $name)

Reparse all text handled by given reparser within given range

Details

at line 69
__construct(user $user, db $reparse_lock, manager $reparser_manager, service_collection $reparsers)

Constructor

Parameters

user $user

User instance (mostly for translation)

db $reparse_lock
manager $reparser_manager
service_collection $reparsers

in command at line 45
ProgressBar create_progress_bar(int $max, SymfonyStyle $io, OutputInterface $output, bool $message = false)

Create a styled progress bar

Parameters

int $max

Max value for the progress bar

SymfonyStyle $io

Symfony style output decorator

OutputInterface $output

The output stream, used to print messages

bool $message

Should we display message output under the progress bar?

Return Value

ProgressBar

at line 84
protected void configure()

Sets the command name and description

Return Value

void

at line 138
protected int execute(InputInterface $input, OutputInterface $output)

Executes the command reparser:reparse

Parameters

InputInterface $input
OutputInterface $output

Return Value

int

at line 179
protected int get_option(string $option_name)

Get an option value, adjusted for given reparser

Will use the last saved value if --resume is set and the option was not specified on the command line

Parameters

string $option_name

Option name

Return Value

int

at line 195
protected reparse(string $name)

Reparse all text handled by given reparser within given range

Parameters

string $name

Reparser service name