ajax_iohandler
class ajax_iohandler extends iohandler_base
Input-Output handler for the AJAX frontend
Properties
protected array | $errors | Array of errors |
from iohandler_base |
protected array | $warnings | Array of warnings |
from iohandler_base |
protected array | $logs | Array of logs |
from iohandler_base |
protected array | $success | Array of success messages |
from iohandler_base |
protected language | $language | from iohandler_base | |
protected int | $task_progress_count | from iohandler_base | |
protected int | $current_task_progress | from iohandler_base | |
protected string | $current_task_name | from iohandler_base | |
protected bool | $restart_progress_bar | from iohandler_base | |
protected path_helper | $path_helper | ||
protected request_interface | $request | ||
protected template | $template | ||
protected router | $router | ||
protected string | $phpbb_root_path | ||
protected string | $file_status | ||
protected string | $form | ||
protected bool | $request_client_refresh | ||
protected array | $nav_data | ||
protected array | $cookies | ||
protected array | $download | ||
protected array | $redirect_url | ||
protected resource | $file_lock_pointer |
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
Returns the rendering information for the form
Localize message.
Returns input variable
Returns raw input variable
Returns server variable
Wrapper function for request_interface::header()
Returns true if the connection is encrypted
Adds a requested data group to the rendering queue
Renders or returns response message
Prepares iohandler's data to be sent out to the client.
Sends refresh request to the client
Marks stage as active in the navigation bar
Marks stage as completed in the navigation bar
Sends and sets cookies
Adds a download link
Renders the status of update files
Redirects the user to a new page
Acquires a file lock
Release file lock
Callback function for language replacing
Details
at line 98
__construct(path_helper $path_helper, request_interface $request, template $template, router $router, string $root_path)
Constructor
in
iohandler_base at line 99
set_language(language $language)
Set language service
in
iohandler_base 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], ...).
in
iohandler_base 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], ...).
in
iohandler_base 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], ...).
in
iohandler_base 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], ...).
in
iohandler_base 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 365
set_progress(string $task_lang_key, int $task_number)
Sets the progress information
in
iohandler_base at line 167
finish_progress(string $message_lang_key)
Finish the progress bar
at line 166
string
generate_form_render_data(string $title, array $form)
Returns the rendering information for the form
in
iohandler_base 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], ...).
at line 118
mixed
get_input(string $name, mixed $default, bool $multibyte = false)
Returns input variable
at line 126
mixed
get_raw_input(string $name, mixed $default)
Returns raw input variable
at line 134
mixed
get_server_variable(string $name, mixed $default = '')
Returns server variable
This function should work the same as request_interface::server().
at line 142
mixed
get_header_variable(string $name, mixed $default = '')
Wrapper function for request_interface::header()
at line 150
bool
is_secure()
Returns true if the connection is encrypted
at line 158
add_user_form_group(string $title, array $form)
Adds a requested data group to the rendering queue
at line 244
send_response(bool $no_more_output = false)
Renders or returns response message
at line 268
protected array
prepare_json_array(bool $no_more_output = false)
Prepares iohandler's data to be sent out to the client.
at line 374
request_refresh()
Sends refresh request to the client
at line 382
set_active_stage_menu(array $menu_path)
Marks stage as active in the navigation bar
at line 391
set_finished_stage_menu(array $menu_path)
Marks stage as completed in the navigation bar
at line 400
set_cookie(string $cookie_name, string $cookie_value)
Sends and sets cookies
at line 411
add_download_link(string $route, string $title, string|null|array $msg = null)
Adds a download link
at line 430
render_update_file_status(array $status_array)
Renders the status of update files
at line 461
redirect(string $url, bool $use_ajax = false)
Redirects the user to a new page
at line 470
acquire_lock()
Acquires a file lock
at line 484
release_lock()
Release file lock
at line 500
string
lang_replace_callback(array $matches)
Callback function for language replacing