PHP Class phpbb\convert\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.
Datei anzeigen Open project: phpbb/phpbb

Protected Properties

Property Type Description
$controller_helper phpbb\install\controller\helper
$filesystem phpbb\filesystem\filesystem
$template phpbb\template\template

Public Methods

Method Description
__construct ( phpbb\template\template $template, phpbb\install\controller\helper $controller_helper ) Constructor
build_insert_query ( &$schema, &$sql_data, $current_table )
convert_data ( $converter ) The function which does the actual work (or dispatches it to the relevant places)
db_error ( $error, $sql, $line, $file, boolean | false $skip = false ) Database error handler function
error ( $error, $line, $file, boolean | false $skip = false ) Error handler function
final_jump ( $final_jump ) This function marks the steps after syncing
finish_conversion ( ) Finish conversion, the last function to be called.
jump ( $converter, $jump, $last_statement ) This function marks the steps before syncing (jump=1)
meta_refresh ( $url ) Own meta refresh function to be able to change the global time used
process_row ( &$schema, &$sql_data, &$insert_values ) Function for processing the currently handled row
save_convert_progress ( $convertor_tag, $step ) Save the convertor status
sync_forums ( $converter, $sync_batch ) Sync function being executed at the middle, some functions need to be executed after a successful sync.

Method Details

__construct() public method

Constructor
public __construct ( phpbb\template\template $template, phpbb\install\controller\helper $controller_helper )
$template phpbb\template\template
$controller_helper phpbb\install\controller\helper

build_insert_query() public method

public build_insert_query ( &$schema, &$sql_data, $current_table )

convert_data() public method

The function which does the actual work (or dispatches it to the relevant places)
public convert_data ( $converter )

db_error() public method

This function needs to be kept for BC
public db_error ( $error, $sql, $line, $file, boolean | false $skip = false )
$error
$sql
$line
$file
$skip boolean | false

error() public method

This function needs to be kept for BC
public error ( $error, $line, $file, boolean | false $skip = false )
$error
$line
$file
$skip boolean | false

final_jump() public method

This function marks the steps after syncing
public final_jump ( $final_jump )

finish_conversion() public method

Finish conversion, the last function to be called.
public finish_conversion ( )

jump() public method

This function marks the steps before syncing (jump=1)
public jump ( $converter, $jump, $last_statement )

meta_refresh() public method

Own meta refresh function to be able to change the global time used
public meta_refresh ( $url )

process_row() public method

Function for processing the currently handled row
public process_row ( &$schema, &$sql_data, &$insert_values )

save_convert_progress() public method

Save the convertor status
public save_convert_progress ( $convertor_tag, $step )

sync_forums() public method

Sync function being executed at the middle, some functions need to be executed after a successful sync.
public sync_forums ( $converter, $sync_batch )

Property Details

$controller_helper protected_oe property

protected helper,phpbb\install\controller $controller_helper
return phpbb\install\controller\helper

$filesystem protected_oe property

protected filesystem,phpbb\filesystem $filesystem
return phpbb\filesystem\filesystem

$template protected_oe property

protected template,phpbb\template $template
return phpbb\template\template