Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| convert | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * |
| 4 | * This file is part of the phpBB Forum Software package. |
| 5 | * |
| 6 | * @copyright (c) phpBB Limited <https://www.phpbb.com> |
| 7 | * @license GNU General Public License, version 2 (GPL-2.0) |
| 8 | * |
| 9 | * For full copyright and license information, please see |
| 10 | * the docs/CREDITS.txt file. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | namespace phpbb\convert; |
| 15 | |
| 16 | /** |
| 17 | * Class holding all convertor-specific details. |
| 18 | * |
| 19 | * WARNING: This file did not meant to be present in a production environment, so moving this file to a location which |
| 20 | * is accessible after board installation might lead to security issues. |
| 21 | */ |
| 22 | class convert |
| 23 | { |
| 24 | var $options = array(); |
| 25 | |
| 26 | var $convertor_tag = ''; |
| 27 | var $src_dbms = ''; |
| 28 | var $src_dbhost = ''; |
| 29 | var $src_dbport = ''; |
| 30 | var $src_dbuser = ''; |
| 31 | var $src_dbpasswd = ''; |
| 32 | var $src_dbname = ''; |
| 33 | var $src_table_prefix = ''; |
| 34 | |
| 35 | var $convertor_data = array(); |
| 36 | var $tables = array(); |
| 37 | var $config_schema = array(); |
| 38 | var $convertor = array(); |
| 39 | var $src_truncate_statement = 'DELETE FROM '; |
| 40 | var $truncate_statement = 'DELETE FROM '; |
| 41 | |
| 42 | // Batch size, can be adjusted by the conversion file |
| 43 | // For big boards a value of 6000 seems to be optimal |
| 44 | var $batch_size = 2000; |
| 45 | // Number of rows to be inserted at once (extended insert) if supported |
| 46 | // For installations having enough memory a value of 60 may be good. |
| 47 | var $num_wait_rows = 20; |
| 48 | |
| 49 | // Mysqls internal recoding engine messing up with our (better) functions? We at least support more encodings than mysql so should use it in favor. |
| 50 | var $mysql_convert = false; |
| 51 | |
| 52 | var $p_master; |
| 53 | |
| 54 | function __construct($p_master) |
| 55 | { |
| 56 | $this->p_master = $p_master; |
| 57 | } |
| 58 | } |