interface iohandler_interface
Input-Output handler interface for the installer
Methods
send_response(bool $no_more_output = false)
Renders or returns response message |
||
mixed |
get_input(string $name, mixed $default, bool $multibyte = false)
Returns input variable |
|
mixed |
get_raw_input(string $name, mixed $default)
Returns raw input variable |
|
mixed |
get_server_variable(string $name, mixed $default = '')
Returns server variable |
|
mixed |
get_header_variable(string $name, mixed $default = '')
Wrapper function for request_interface::header() |
|
bool |
is_secure()
Returns true if the connection is encrypted |
|
add_error_message(string|array $error_title, string|bool|array $error_description = false)
Adds an error message to the rendering queue |
||
add_warning_message(string|array $warning_title, string|bool|array $warning_description = false)
Adds a warning message to the rendering queue |
||
add_log_message(string|array $log_title, string|bool|array $log_description = false)
Adds a log message to the rendering queue |
||
null |
add_success_message(string|array $success_title, string|bool|array $success_description = false)
Adds a success message to the rendering queue |
|
add_user_form_group(string $title, array $form)
Adds a requested data group to the rendering queue |
||
string |
generate_form_render_data(string $title, array $form)
Returns the rendering information for the form |
|
set_task_count(int $task_count, bool $restart = false)
Sets the number of tasks belonging to the installer in the current mode. |
||
set_progress(string $task_lang_key, int $task_number)
Sets the progress information |
||
request_refresh()
Sends refresh request to the client |
||
set_active_stage_menu(array $menu_path)
Marks stage as active in the navigation bar |
||
set_finished_stage_menu(array $menu_path)
Marks stage as completed in the navigation bar |
||
finish_progress(string $message_lang_key)
Finish the progress bar |
||
add_download_link(string $route, string $title, string|null|array $msg = null)
Adds a download link |
||
redirect(string $url, bool $use_ajax = false)
Redirects the user to a new page |
||
render_update_file_status(array $status_array)
Renders the status of update files |
||
set_cookie(string $cookie_name, string $cookie_value)
Sends and sets cookies |
Details
at line 26
public
send_response(bool $no_more_output = false)
Renders or returns response message
at line 39
public mixed
get_input(string $name, mixed $default, bool $multibyte = false)
Returns input variable
at line 50
public mixed
get_raw_input(string $name, mixed $default)
Returns raw input variable
at line 62
public mixed
get_server_variable(string $name, mixed $default = '')
Returns server variable
This function should work the same as request_interface::server().
at line 72
public mixed
get_header_variable(string $name, mixed $default = '')
Wrapper function for request_interface::header()
at line 79
public bool
is_secure()
Returns true if the connection is encrypted
at line 91
public
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 103
public
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 115
public
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 129
public 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 137
public
add_user_form_group(string $title, array $form)
Adds a requested data group to the rendering queue
at line 147
public string
generate_form_render_data(string $title, array $form)
Returns the rendering information for the form
at line 155
public
set_task_count(int $task_count, bool $restart = false)
Sets the number of tasks belonging to the installer in the current mode.
at line 163
public
set_progress(string $task_lang_key, int $task_number)
Sets the progress information
at line 168
public
request_refresh()
Sends refresh request to the client
at line 175
public
set_active_stage_menu(array $menu_path)
Marks stage as active in the navigation bar
at line 182
public
set_finished_stage_menu(array $menu_path)
Marks stage as completed in the navigation bar
at line 189
public
finish_progress(string $message_lang_key)
Finish the progress bar
at line 198
public
add_download_link(string $route, string $title, string|null|array $msg = null)
Adds a download link
at line 206
public
redirect(string $url, bool $use_ajax = false)
Redirects the user to a new page
at line 213
public
render_update_file_status(array $status_array)
Renders the status of update files
at line 221
public
set_cookie(string $cookie_name, string $cookie_value)
Sends and sets cookies