iohandler_base
abstract class iohandler_base implements iohandler_interface
Base class for installer input-output handlers
Properties
protected array | $errors | Array of errors |
|
protected array | $warnings | Array of warnings |
|
protected array | $logs | Array of logs |
|
protected array | $success | Array of success messages |
|
protected language | $language | ||
protected int | $task_progress_count | ||
protected int | $current_task_progress | ||
protected string | $current_task_name | ||
protected bool | $restart_progress_bar |
Methods
Constructor
Adds an error message to the rendering queue
Adds a warning message to the rendering queue
Adds a log message to the rendering queue
Adds a success message to the rendering queue
Sets the number of tasks belonging to the installer in the current mode.
Sets the progress information
Finish the progress bar
Returns the rendering information for the form
Localize message.
Details
at line 81
__construct()
Constructor
at line 99
set_language(language $language)
Set language service
at line 107
add_error_message(string|array $error_title, string|bool|array $error_description = false)
Adds an error message to the rendering queue
Note: When an array is passed into the parameters below, it will be resolved as printf($param[0], $param[1], ...).
at line 119
add_warning_message(string|array $warning_title, string|bool|array $warning_description = false)
Adds a warning message to the rendering queue
Note: When an array is passed into the parameters below, it will be resolved as printf($param[0], $param[1], ...).
at line 127
add_log_message(string|array $log_title, string|bool|array $log_description = false)
Adds a log message to the rendering queue
Note: When an array is passed into the parameters below, it will be resolved as printf($param[0], $param[1], ...).
at line 135
null
add_success_message(string|array $success_title, string|bool|array $success_description = false)
Adds a success message to the rendering queue
Note: When an array is passed into the parameters below, it will be resolved as printf($param[0], $param[1], ...).
at line 143
set_task_count(int $task_count, bool $restart = false)
Sets the number of tasks belonging to the installer in the current mode.
at line 152
set_progress(string $task_lang_key, int $task_number)
Sets the progress information
at line 167
finish_progress(string $message_lang_key)
Finish the progress bar
at line 180
string
generate_form_render_data(string $title, array $form)
Returns the rendering information for the form
at line 196
protected array
translate_message(array|string $title, array|string|bool $description)
Localize message.
Note: When an array is passed into the parameters below, it will be resolved as printf($param[0], $param[1], ...).