PHP Интерфейс phpbb\install\helper\iohandler\iohandler_interface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
add_download_link ( string $route, string $title, string | null | array $msg = null ) Adds a download link
add_error_message ( string | array $error_title, string | boolean | array $error_description = false ) Adds an error message to the rendering queue
add_log_message ( string | array $log_title, string | boolean | array $log_description = false ) Adds a log message to the rendering queue
add_success_message ( string | array $success_title, string | boolean | array $success_description = false ) : null 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
add_warning_message ( string | array $warning_title, string | boolean | array $warning_description = false ) Adds a warning message to the rendering queue
finish_progress ( string $message_lang_key ) Finish the progress bar
generate_form_render_data ( string $title, array $form ) : string Returns the rendering information for the form
get_header_variable ( string $name, mixed $default = '' ) : mixed Wrapper function for request_interface::header()
get_input ( string $name, mixed $default, boolean $multibyte = false ) : mixed Returns input variable
get_raw_input ( string $name, mixed $default ) : mixed Returns raw input variable
get_server_variable ( string $name, mixed $default = '' ) : mixed Returns server variable
is_secure ( ) : boolean Returns true if the connection is encrypted
redirect ( string $url, boolean $use_ajax = false ) Redirects the user to a new page
render_update_file_status ( array $status_array ) Renders the status of update files
request_refresh ( ) Sends refresh request to the client
send_response ( boolean $no_more_output = false ) Renders or returns response message
set_active_stage_menu ( array $menu_path ) Marks stage as active in the navigation bar
set_cookie ( string $cookie_name, string $cookie_value ) Sends and sets cookies
set_finished_stage_menu ( array $menu_path ) Marks stage as completed in the navigation bar
set_progress ( string $task_lang_key, integer $task_number ) Sets the progress information
set_task_count ( integer $task_count, boolean $restart = false ) Sets the number of tasks belonging to the installer in the current mode.

Описание методов

add_error_message() публичный Метод

Note: When an array is passed into the parameters below, it will be resolved as printf($param[0], $param[1], ...).
public add_error_message ( string | array $error_title, string | boolean | array $error_description = false )
$error_title string | array Title of the error message.
$error_description string | boolean | array Description of the error (and possibly guidelines to resolve it), or false if the error description is not available.

add_log_message() публичный Метод

Note: When an array is passed into the parameters below, it will be resolved as printf($param[0], $param[1], ...).
public add_log_message ( string | array $log_title, string | boolean | array $log_description = false )
$log_title string | array Title of the log message
$log_description string | boolean | array Description of the log, or false if the log description is not available

add_success_message() публичный Метод

Note: When an array is passed into the parameters below, it will be resolved as printf($param[0], $param[1], ...).
public add_success_message ( string | array $success_title, string | boolean | array $success_description = false ) : null
$success_title string | array Title of the success message
$success_description string | boolean | array Description of the success, or false if the success description is not available
Результат null

add_user_form_group() публичный Метод

Adds a requested data group to the rendering queue
public add_user_form_group ( string $title, array $form )
$title string Language variable with the title of the form
$form array An array describing the required data (options etc)

add_warning_message() публичный Метод

Note: When an array is passed into the parameters below, it will be resolved as printf($param[0], $param[1], ...).
public add_warning_message ( string | array $warning_title, string | boolean | array $warning_description = false )
$warning_title string | array Title of the warning message
$warning_description string | boolean | array Description of the warning (and possibly guidelines to resolve it), or false if the warning description is not available

finish_progress() публичный Метод

Finish the progress bar
public finish_progress ( string $message_lang_key )
$message_lang_key string Language key for the message

generate_form_render_data() публичный Метод

Returns the rendering information for the form
public generate_form_render_data ( string $title, array $form ) : string
$title string Language variable with the title of the form
$form array An array describing the required data (options etc)
Результат string Information to render the form

get_header_variable() публичный Метод

Wrapper function for request_interface::header()
public get_header_variable ( string $name, mixed $default = '' ) : mixed
$name string Name of the request header variable
$default mixed Default value to return when the requested variable does not exist
Результат mixed

get_input() публичный Метод

Returns input variable
public get_input ( string $name, mixed $default, boolean $multibyte = false ) : mixed
$name string Name of the input variable to obtain
$default mixed A default value that is returned if the variable was not set. This function will always return a value of the same type as the default.
$multibyte boolean If $default is a string this paramater has to be true if the variable may contain any UTF-8 characters Default is false, causing all bytes outside the ASCII range (0-127) to be replaced with question marks
Результат mixed Value of the input variable

get_raw_input() публичный Метод

Returns raw input variable
public get_raw_input ( string $name, mixed $default ) : mixed
$name string Name of the input variable to obtain
$default mixed A default value that is returned if the variable was not set. This function will always return a value of the same type as the default.
Результат mixed Value of the raw input variable

get_server_variable() публичный Метод

This function should work the same as request_interface::server().
public get_server_variable ( string $name, mixed $default = '' ) : mixed
$name string Name of the server variable
$default mixed Default value to return when the requested variable does not exist
Результат mixed Value of the server variable

is_secure() публичный Метод

Returns true if the connection is encrypted
public is_secure ( ) : boolean
Результат boolean

redirect() публичный Метод

Redirects the user to a new page
public redirect ( string $url, boolean $use_ajax = false )
$url string URL to redirect to
$use_ajax boolean Whether or not to use AJAX redirect

render_update_file_status() публичный Метод

Renders the status of update files
public render_update_file_status ( array $status_array )
$status_array array Array containing files in groups to render

request_refresh() публичный Метод

Sends refresh request to the client
public request_refresh ( )

send_response() публичный Метод

Renders or returns response message
public send_response ( boolean $no_more_output = false )
$no_more_output boolean Whether or not there will be more output in this output unit

set_active_stage_menu() публичный Метод

Marks stage as active in the navigation bar
public set_active_stage_menu ( array $menu_path )
$menu_path array Array to the navigation elem

set_finished_stage_menu() публичный Метод

Marks stage as completed in the navigation bar
public set_finished_stage_menu ( array $menu_path )
$menu_path array Array to the navigation elem

set_progress() публичный Метод

Sets the progress information
public set_progress ( string $task_lang_key, integer $task_number )
$task_lang_key string Language key for the name of the task
$task_number integer Position of the current task in the task queue

set_task_count() публичный Метод

Sets the number of tasks belonging to the installer in the current mode.
public set_task_count ( integer $task_count, boolean $restart = false )
$task_count integer Number of tasks
$restart boolean Whether or not to restart the progress bar, false by default