XenForo1_1::getDbName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
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