class delete_id extends command

Properties

protected user $user from  command
protected driver_interface $db
protected language $language
protected log_interface $log
protected user_loader $user_loader
protected string $bots_table
protected string $user_group_table
protected string $users_table
protected string $phpbb_root_path
protected string $php_ext

Methods

__construct(driver_interface $db, language $language, log_interface $log, user $user, user_loader $user_loader, string $bots_table, string $user_group_table, string $users_table, string $phpbb_root_path, string $php_ext)

Construct method

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 user:delete_ids

void
interact(InputInterface $input, OutputInterface $output)

Interacts with the user.

void
delete_bot_user(array $user_row)

Deletes a bot user

Details

at line 72
__construct(driver_interface $db, language $language, log_interface $log, user $user, user_loader $user_loader, string $bots_table, string $user_group_table, string $users_table, string $phpbb_root_path, string $php_ext)

Construct method

Parameters

driver_interface $db
language $language
log_interface $log
user $user

User instance (mostly for translation)

user_loader $user_loader
string $bots_table
string $user_group_table
string $users_table
string $phpbb_root_path
string $php_ext

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 94
protected void configure()

Sets the command name and description

Return Value

void

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

Executes the command user:delete_ids

Deletes a list of user ids from the database. An option to delete the users' posts is available, by default posts will be retained.

Parameters

InputInterface $input

The input stream used to get the options

OutputInterface $output

The output stream, used to print messages

Return Value

int

0 if all is well, 1 if any errors occurred

at line 192
protected void interact(InputInterface $input, OutputInterface $output)

Interacts with the user.

Confirm they really want to delete the account...last chance!

Parameters

InputInterface $input

An InputInterface instance

OutputInterface $output

An OutputInterface instance

Return Value

void

at line 217
protected void delete_bot_user(array $user_row)

Deletes a bot user

Parameters

array $user_row

Return Value

void