class delete extends command

Properties

protected user $user from  command
protected language $language
protected log_interface $log
protected user_loader $user_loader
protected string $phpbb_root_path

phpBB root path

protected string $php_ext

PHP extension.

Methods

__construct(user $user, language $language, log_interface $log, user_loader $user_loader, 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
null
configure()

Sets the command name and description

int
execute(InputInterface $input, OutputInterface $output)

Executes the command user:delete

interact(InputInterface $input, OutputInterface $output)

Interacts with the user.

Details

at line 64
__construct(user $user, language $language, log_interface $log, user_loader $user_loader, string $phpbb_root_path, string $php_ext)

Construct method

Parameters

user $user

User instance (mostly for translation)

language $language
log_interface $log
user_loader $user_loader
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 81
protected null configure()

Sets the command name and description

Return Value

null

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

Executes the command user:delete

Deletes a user from the database. An option to delete the user's 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 151
protected 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