Passed
Push — master ( 655649...07d5b2 )
by Spuds
06:48 queued 05:03
created

mybb16   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 35
rs 10
c 0
b 0
f 0
wmc 5
lcom 0
cbo 1
1
<?php
2
/**
3
 * @name      OpenImporter
4
 * @copyright OpenImporter contributors
5
 * @license   BSD https://opensource.org/licenses/BSD-3-Clause
6
 *
7
 * @version 1.0
8
 */
9
10
/**
11
 * Class mybb16
12
 * Settings for the MyBB 1.6 system.
13
 */
14
class mybb16 extends Importers\AbstractSourceImporter
15
{
16
	protected $setting_file = '/inc/config.php';
17
18
	public function getName()
19
	{
20
		return 'MyBB 1.6';
21
	}
22
23
	public function getVersion()
24
	{
25
		return 'ElkArte 1.0';
26
	}
27
28
	public function getPrefix()
29
	{
30
		// @todo Convert the use of globals to a scan of the file or something similar.
31
		global $config;
32
33
		return '`' . $this->getDbName() . '`.' . $config['database']['table_prefix'];
34
	}
35
36
	public function getDbName()
37
	{
38
		// @todo Convert the use of globals to a scan of the file or something similar.
39
		global $config;
40
41
		return $config['database']['database'];
42
	}
43
44
	public function getTableTest()
45
	{
46
		return 'users';
47
	}
48
}
49