phpBB API Documentation
Class

phpbb\convert\convertor

class convertor

Convertor backend class

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.

Methods

__construct(template $template, helper $controller_helper)

Constructor

convert_data($converter)

The function which does the actual work (or dispatches it to the relevant places)

sync_forums($converter, $sync_batch)

Sync function being executed at the middle, some functions need to be executed after a successful sync.

save_convert_progress($convertor_tag, $step)

Save the convertor status

finish_conversion()

Finish conversion, the last function to be called.

final_jump($final_jump)

This function marks the steps after syncing

jump($converter, $jump, $last_statement)

This function marks the steps before syncing (jump=1)

build_insert_query($schema, $sql_data, $current_table)

process_row($schema, $sql_data, $insert_values)

Function for processing the currently handled row

meta_refresh($url)

Own meta refresh function to be able to change the global time used

error($error $error, $line $line, $file $file, bool|false $skip = false)

Error handler function

db_error($error $error, $sql $sql, $line $line, $file $file, bool|false $skip = false)

Database error handler function

Details

at line 48
public __construct(template $template, helper $controller_helper)

Constructor

Parameters

template $template
helper $controller_helper

at line 62
public convert_data($converter)

The function which does the actual work (or dispatches it to the relevant places)

Parameters

$converter

at line 919
public sync_forums($converter, $sync_batch)

Sync function being executed at the middle, some functions need to be executed after a successful sync.

Parameters

$converter
$sync_batch

at line 1001
public save_convert_progress($convertor_tag, $step)

Save the convertor status

Parameters

$convertor_tag
$step

at line 1030
public finish_conversion()

Finish conversion, the last function to be called.

at line 1064
public final_jump($final_jump)

This function marks the steps after syncing

Parameters

$final_jump

at line 1103
public jump($converter, $jump, $last_statement)

This function marks the steps before syncing (jump=1)

Parameters

$converter
$jump
$last_statement

at line 1256
public build_insert_query($schema, $sql_data, $current_table)

Parameters

$schema
$sql_data
$current_table

at line 1411
public process_row($schema, $sql_data, $insert_values)

Function for processing the currently handled row

Parameters

$schema
$sql_data
$insert_values

at line 1565
public meta_refresh($url)

Own meta refresh function to be able to change the global time used

Parameters

$url

at line 1589
public error($error $error, $line $line, $file $file, bool|false $skip = false)

Error handler function

This function needs to be kept for BC

Parameters

$error $error
$line $line
$file $file
bool|false $skip

at line 1608
public db_error($error $error, $sql $sql, $line $line, $file $file, bool|false $skip = false)

Database error handler function

This function needs to be kept for BC

Parameters

$error $error
$sql $sql
$line $line
$file $file
bool|false $skip