1 | <?php |
||
14 | class mybb18 extends Importers\AbstractSourceImporter |
||
15 | { |
||
16 | protected $setting_file = '/inc/config.php'; |
||
17 | |||
18 | public function getName() |
||
19 | { |
||
20 | return 'MyBB 1.8'; |
||
21 | } |
||
22 | |||
23 | public function getVersion() |
||
24 | { |
||
25 | return 'ElkArte 1.0'; |
||
26 | } |
||
27 | |||
28 | public function getPrefix() |
||
29 | { |
||
30 | global $config; |
||
31 | |||
32 | return '`' . $this->getDbName() . '`.' . $config['database']['table_prefix']; |
||
33 | } |
||
34 | |||
35 | public function getDbName() |
||
40 | } |
||
41 | |||
42 | public function getTableTest() |
||
43 | { |
||
44 | return 'users'; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * Copy attachment files |
||
49 | * |
||
50 | * @param string $dir |
||
51 | * @param array $row |
||
52 | * @param int $id_attach |
||
53 | * @param string $destination_path |
||
54 | * @param bool $thumb |
||
55 | * |
||
56 | * @return array |
||
57 | */ |
||
58 | public function mybb_copy_files($dir, $row, $id_attach, $destination_path, $thumb = false) |
||
104 | ); |
||
105 | } |
||
106 | } |
||
107 |