PHP Class phpbb\convert\controller\convertor

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.
Afficher le fichier Open project: phpbb/phpbb

Protected Properties

Свойство Type Description
$cache phpbb\cache\driver\driver_interface
$config phpbb\config\db
$config_php_file phpbb\config_php_file
$config_table string
$controller_helper phpbb\install\controller\helper
$db phpbb\db\driver\driver_interface
$db_helper phpbb\install\helper\database
$install_helper phpbb\install\helper\install_helper
$installer_cache phpbb\cache\driver\driver_interface
$iohandler phpbb\install\helper\iohandler\iohandler_interface
$language phpbb\language\language
$navigation_provider phpbb\install\helper\navigation\navigation_provider
$php_ext string
$phpbb_root_path string
$request phpbb\request\request_interface
$session_keys_table string
$session_table string
$template phpbb\template\template

Méthodes publiques

Méthode Description
__construct ( phpbb\cache\driver\driver_interface $cache, phpbb\install\helper\container_factory $container, phpbb\install\helper\database $db_helper, phpbb\install\controller\helper $controller_helper, phpbb\install\helper\install_helper $install_helper, phpbb\install\helper\iohandler\factory $iohandler, phpbb\language\language $language, phpbb\install\helper\navigation\navigation_provider $nav, phpbb\request\request_interface $request, phpbb\template\template $template, string $phpbb_root_path, string $php_ext ) Constructor
convert ( $converter ) Run conversion
finish ( ) Render the final page of the convertor
intro ( boolean | integer $start_new ) : Response Render the intro page
proccess_settings_form ( string $convertor ) Validates settings form
redirect_to_html ( string $url ) Redirects an AJAX request to a non-JS version
render_error ( string $msg, string | boolean $desc = false ) Renders an error form
render_settings_form ( array $error = [] ) Renders settings form
settings ( string $convertor ) : Response | Symfony\Component\HttpFoundation\StreamedResponse Obtain convertor settings

Méthodes protégées

Méthode Description
render_convert_list ( ) : Response Render the list of available convertors

Private Methods

Méthode Description
setup_navigation ( $stage )

Method Details

__construct() public méthode

Constructor
public __construct ( phpbb\cache\driver\driver_interface $cache, phpbb\install\helper\container_factory $container, phpbb\install\helper\database $db_helper, phpbb\install\controller\helper $controller_helper, phpbb\install\helper\install_helper $install_helper, phpbb\install\helper\iohandler\factory $iohandler, phpbb\language\language $language, phpbb\install\helper\navigation\navigation_provider $nav, phpbb\request\request_interface $request, phpbb\template\template $template, string $phpbb_root_path, string $php_ext )
$cache phpbb\cache\driver\driver_interface
$container phpbb\install\helper\container_factory
$db_helper phpbb\install\helper\database
$controller_helper phpbb\install\controller\helper
$install_helper phpbb\install\helper\install_helper
$iohandler phpbb\install\helper\iohandler\factory
$language phpbb\language\language
$nav phpbb\install\helper\navigation\navigation_provider
$request phpbb\request\request_interface
$template phpbb\template\template
$phpbb_root_path string
$php_ext string

convert() public méthode

Run conversion
public convert ( $converter )

finish() public méthode

Render the final page of the convertor
public finish ( )

intro() public méthode

Render the intro page
public intro ( boolean | integer $start_new ) : Response
$start_new boolean | integer Whether or not to force to start a new convertor
Résultat Symfony\Component\HttpFoundation\Response

proccess_settings_form() public méthode

Validates settings form
public proccess_settings_form ( string $convertor )
$convertor string

redirect_to_html() public méthode

Redirects an AJAX request to a non-JS version
public redirect_to_html ( string $url )
$url string URL to redirect to

render_convert_list() protected méthode

Render the list of available convertors
protected render_convert_list ( ) : Response
Résultat Symfony\Component\HttpFoundation\Response

render_error() public méthode

Renders an error form
public render_error ( string $msg, string | boolean $desc = false )
$msg string
$desc string | boolean

render_settings_form() public méthode

Renders settings form
public render_settings_form ( array $error = [] )
$error array Array of errors

settings() public méthode

Obtain convertor settings
public settings ( string $convertor ) : Response | Symfony\Component\HttpFoundation\StreamedResponse
$convertor string Name of the convertor
Résultat Symfony\Component\HttpFoundation\Response | Symfony\Component\HttpFoundation\StreamedResponse

Property Details

$cache protected_oe property

protected driver_interface,phpbb\cache\driver $cache
Résultat phpbb\cache\driver\driver_interface

$config protected_oe property

protected db,phpbb\config $config
Résultat phpbb\config\db

$config_php_file protected_oe property

protected config_php_file,phpbb $config_php_file
Résultat phpbb\config_php_file

$config_table protected_oe property

protected string $config_table
Résultat string

$controller_helper protected_oe property

protected helper,phpbb\install\controller $controller_helper
Résultat phpbb\install\controller\helper

$db protected_oe property

protected driver_interface,phpbb\db\driver $db
Résultat phpbb\db\driver\driver_interface

$db_helper protected_oe property

protected database,phpbb\install\helper $db_helper
Résultat phpbb\install\helper\database

$install_helper protected_oe property

protected install_helper,phpbb\install\helper $install_helper
Résultat phpbb\install\helper\install_helper

$installer_cache protected_oe property

protected driver_interface,phpbb\cache\driver $installer_cache
Résultat phpbb\cache\driver\driver_interface

$iohandler protected_oe property

protected iohandler_interface,phpbb\install\helper\iohandler $iohandler
Résultat phpbb\install\helper\iohandler\iohandler_interface

$language protected_oe property

protected language,phpbb\language $language
Résultat phpbb\language\language

$navigation_provider protected_oe property

protected navigation_provider,phpbb\install\helper\navigation $navigation_provider
Résultat phpbb\install\helper\navigation\navigation_provider

$php_ext protected_oe property

protected string $php_ext
Résultat string

$phpbb_root_path protected_oe property

protected string $phpbb_root_path
Résultat string

$request protected_oe property

protected request_interface,phpbb\request $request
Résultat phpbb\request\request_interface

$session_keys_table protected_oe property

protected string $session_keys_table
Résultat string

$session_table protected_oe property

protected string $session_table
Résultat string

$template protected_oe property

protected template,phpbb\template $template
Résultat phpbb\template\template