class convertor

Controller for forum convertors

WARNING: This file did not meant to be present in a production environment, so moving this file to a location which is accessible after board installation might lead to security issues.

Properties

protected driver_interface $cache
protected driver_interface $installer_cache
protected db $config
protected config_php_file $config_php_file
protected string $config_table
protected helper $controller_helper
protected database $db_helper
protected driver_interface $db
protected install_helper $install_helper
protected iohandler_interface $iohandler
protected language $language
protected navigation_provider $navigation_provider
protected request_interface $request
protected string $session_keys_table
protected string $session_table
protected template $template
protected string $phpbb_root_path
protected string $php_ext

Methods

__construct(driver_interface $cache, container_factory $container, database $db_helper, helper $controller_helper, install_helper $install_helper, factory $iohandler, language $language, navigation_provider $nav, request_interface $request, template $template, string $phpbb_root_path, string $php_ext)

Constructor

Response
intro(bool|int $start_new)

Render the intro page

Response|StreamedResponse
settings(string $converter)

Obtain convertor settings

convert($converter)

Run conversion

finish()

Render the final page of the convertor

proccess_settings_form(string $convertor)

Validates settings form

render_settings_form(array $error = array())

Renders settings form

Response
render_convert_list()

Render the list of available convertors

render_error(string $msg, string|bool $desc = false)

Renders an error form

redirect_to_html(string $url)

Redirects an AJAX request to a non-JS version

Details

at line 145
__construct(driver_interface $cache, container_factory $container, database $db_helper, helper $controller_helper, install_helper $install_helper, factory $iohandler, language $language, navigation_provider $nav, request_interface $request, template $template, string $phpbb_root_path, string $php_ext)

Constructor

Parameters

driver_interface $cache
container_factory $container
database $db_helper
helper $controller_helper
install_helper $install_helper
factory $iohandler
language $language
navigation_provider $nav
request_interface $request
template $template
string $phpbb_root_path
string $php_ext

at line 185
Response intro(bool|int $start_new)

Render the intro page

Parameters

bool|int $start_new

Whether or not to force to start a new convertor

Return Value

Response

at line 260
Response|StreamedResponse settings(string $converter)

Obtain convertor settings

Parameters

string $converter

Name of the convertor

Return Value

Response|StreamedResponse

at line 352
convert($converter)

Run conversion

Parameters

$converter

at line 378
finish()

Render the final page of the convertor

at line 432
proccess_settings_form(string $convertor)

Validates settings form

Parameters

string $convertor

at line 607
render_settings_form(array $error = array())

Renders settings form

Parameters

array $error

Array of errors

at line 706
protected Response render_convert_list()

Render the list of available convertors

Return Value

Response

at line 776
render_error(string $msg, string|bool $desc = false)

Renders an error form

Parameters

string $msg
string|bool $desc

at line 802
redirect_to_html(string $url)

Redirects an AJAX request to a non-JS version

Parameters

string $url

URL to redirect to