class install_convert extends module
Convert class for conversions
Properties
| $id | ||
| $type | ||
| $module_ary | ||
| $filename | ||
| $module_url | ||
| $tpl_name | ||
| $mode | ||
| $sub | ||
| $convert_options | The information below will be used to build the input fields presented to the user |
Methods
|
create($module_type, $module_url, $selected_mod = false, $selected_submod = false)
Private methods, should not be overwritten |
from module | |
|
load($mode = false, $run = true)
Load and run the relevant module if applicable |
from module | |
|
page_header()
Output the standard page header |
from module | |
|
page_footer()
Output the standard page footer |
from module | |
|
get_tpl_name()
Returns desired template name |
from module | |
|
get_page_title()
Returns the desired page title |
from module | |
|
redirect(string $page)
Generate an HTTP/1.1 header to redirect the user to another page This is used during the installation when we do not have a database available to call the normal redirect function |
from module | |
|
generate_navigation()
Generate the navigation tabs |
from module | |
|
error($error, $line, $file, $skip = false)
Output an error message If skip is true, return and continue execution, else exit |
from module | |
|
db_error($error, $sql, $line, $file, $skip = false)
Output an error message for a database related problem If skip is true, return and continue execution, else exit |
from module | |
|
input_field($name, $type, $value = '', $options = '')
Generate the relevant HTML for an input field and the associated label and explanatory text |
from module | |
|
inst_language_select($default = '')
Generate the drop down of available language packs |
from module | |
|
install_convert($p_master)
Variables used while converting, they are accessible from the global variable $convert |
||
|
main($mode, $sub)
|
||
| bool |
check_phpbb_installed()
Check whether phpBB is installed. |
|
|
list_convertors($sub)
Generate a list of all available conversion modules |
||
|
get_convert_settings($sub)
|
||
|
convert_data($sub)
The function which does the actual work (or dispatches it to the relevant places) |
||
|
sync_forums($sync_batch)
Sync function being executed at the middle, some functions need to be executed after a successful sync. |
||
|
save_convert_progress($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($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 |
Details
in module at line 315
public
create($module_type, $module_url, $selected_mod = false, $selected_submod = false)
Private methods, should not be overwritten
in module at line 389
public
load($mode = false, $run = true)
Load and run the relevant module if applicable
in module at line 417
public
page_header()
Output the standard page header
in module at line 456
public
page_footer()
Output the standard page footer
in module at line 477
public
get_tpl_name()
Returns desired template name
in module at line 485
public
get_page_title()
Returns the desired page title
in module at line 502
public
redirect(string $page)
Generate an HTTP/1.1 header to redirect the user to another page This is used during the installation when we do not have a database available to call the normal redirect function
in module at line 540
public
generate_navigation()
Generate the navigation tabs
in module at line 613
public
error($error, $line, $file, $skip = false)
Output an error message If skip is true, return and continue execution, else exit
in module at line 677
public
db_error($error, $sql, $line, $file, $skip = false)
Output an error message for a database related problem If skip is true, return and continue execution, else exit
in module at line 719
public
input_field($name, $type, $value = '', $options = '')
Generate the relevant HTML for an input field and the associated label and explanatory text
in module at line 794
public
inst_language_select($default = '')
Generate the drop down of available language packs
at line 102
public
install_convert($p_master)
Variables used while converting, they are accessible from the global variable $convert
at line 107
public
main($mode, $sub)
at line 278
public bool
check_phpbb_installed()
Check whether phpBB is installed.
Assigns error template vars if not installed.
at line 299
public
list_convertors($sub)
Generate a list of all available conversion modules
at line 374
public
get_convert_settings($sub)
at line 618
public
convert_data($sub)
The function which does the actual work (or dispatches it to the relevant places)
at line 1482
public
sync_forums($sync_batch)
Sync function being executed at the middle, some functions need to be executed after a successful sync.
at line 1561
public
save_convert_progress($step)
Save the convertor status
at line 1590
public
finish_conversion()
Finish conversion, the last function to be called.
at line 1623
public
final_jump($final_jump)
This function marks the steps after syncing
at line 1662
public
jump($jump, $last_statement)
This function marks the steps before syncing (jump=1)
at line 1811
public
build_insert_query($schema, $sql_data, $current_table)
at line 1966
public
process_row($schema, $sql_data, $insert_values)
Function for processing the currently handled row
at line 2120
public
meta_refresh($url)
Own meta refresh function to be able to change the global time used