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.

Properties

protected helper $controller_helper
protected filesystem $filesystem
protected template $template

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)

No description

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, $line, $file, bool|false $skip = false)

Error handler function

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

Database error handler function

Details

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

Constructor

Parameters

template $template
helper $controller_helper

at line 62
convert_data($converter)

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

Parameters

$converter

at line 907
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 989
save_convert_progress($convertor_tag, $step)

Save the convertor status

Parameters

$convertor_tag
$step

at line 1018
finish_conversion()

Finish conversion, the last function to be called.

at line 1052
final_jump($final_jump)

This function marks the steps after syncing

Parameters

$final_jump

at line 1091
jump($converter, $jump, $last_statement)

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

Parameters

$converter
$jump
$last_statement

at line 1244
build_insert_query($schema, $sql_data, $current_table)

No description

Parameters

$schema
$sql_data
$current_table

at line 1397
process_row($schema, $sql_data, $insert_values)

Function for processing the currently handled row

Parameters

$schema
$sql_data
$insert_values

at line 1563
meta_refresh($url)

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

Parameters

$url

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

Error handler function

This function needs to be kept for BC

Parameters

$error
$line
$file
bool|false $skip

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

Database error handler function

This function needs to be kept for BC

Parameters

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