| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class Viscacha extends Importers\AbstractSourceImporter |
||
| 15 | {
|
||
| 16 | protected $setting_file = '/data/config.inc.php'; |
||
| 17 | |||
| 18 | public function getName() |
||
| 19 | {
|
||
| 20 | return 'Viscacha 0.8'; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getVersion() |
||
| 24 | {
|
||
| 25 | return 'ElkArte 1.0'; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function setDefines() |
||
| 29 | {
|
||
| 30 | define('VISCACHA_CORE', 1);
|
||
| 31 | } |
||
| 32 | |||
| 33 | public function getPrefix() |
||
| 34 | {
|
||
| 35 | // @todo Convert the use of globals to a scan of the file or something similar. |
||
| 36 | global $config; |
||
| 37 | |||
| 38 | return '`' . $this->getDbName() . '`.' . $config['dbprefix']; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getDbName() |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getTableTest() |
||
| 52 | } |
||
| 53 | } |
||
| 54 |