XenForo1_1   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 9
c 2
b 0
f 0
dl 0
loc 31
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getTableTest() 0 3 1
A getName() 0 3 1
A getPrefix() 0 5 1
A getVersion() 0 3 1
A getDbName() 0 5 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 XenForo1_1
12
 */
13
class XenForo1_1 extends Importers\AbstractSourceImporter
14
{
15
	protected $setting_file = '/includes/config.php';
16
17
	public function getName()
18
	{
19
		return 'XenForo 1.1';
20
	}
21
22
	public function getVersion()
23
	{
24
		return 'ElkArte 1.0';
25
	}
26
27
	public function getPrefix()
28
	{
29
		global $xf_prefix;
30
31
		return '`' . $this->getDbName() . '`.' . $xf_prefix;
32
	}
33
34
	public function getDbName()
35
	{
36
		global $xf_database;
37
38
		return $xf_database;
39
	}
40
41
	public function getTableTest()
42
	{
43
		return 'user';
44
	}
45
}
46