1
|
|
|
<?php declare(strict_types=1); |
2
|
|
|
|
3
|
|
|
namespace XoopsModules\Marquee\Common; |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
You may not change or alter any portion of this comment or credits |
7
|
|
|
of supporting developers from this source code or any supporting source code |
8
|
|
|
which is considered copyrighted (c) material of the original comment or credit authors. |
9
|
|
|
|
10
|
|
|
This program is distributed in the hope that it will be useful, |
11
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
12
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
13
|
|
|
*/ |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* Configurator Class |
17
|
|
|
* |
18
|
|
|
* @copyright XOOPS Project (https://xoops.org) |
19
|
|
|
* @license GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html) |
20
|
|
|
* @author XOOPS Development Team |
21
|
|
|
*/ |
22
|
|
|
//require_once \dirname(__DIR__, 2) . '/include/common.php'; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* Class Configurator |
26
|
|
|
*/ |
27
|
|
|
class Configurator |
28
|
|
|
{ |
29
|
|
|
protected $data; |
30
|
|
|
protected $default; |
31
|
|
|
public string $name; |
32
|
|
|
public $paths; |
33
|
|
|
public array $uploadFolders = []; |
34
|
|
|
public array $copyBlankFiles = []; |
35
|
|
|
public array $copyTestFolders = []; |
36
|
|
|
public array $templateFolders = []; |
37
|
|
|
public array $oldFiles = []; |
38
|
|
|
public array $oldFolders = []; |
39
|
|
|
public array $renameTables = []; |
40
|
|
|
public array $renameColumns = []; |
41
|
|
|
public array $moduleStats = []; |
42
|
|
|
public string $modCopyright; |
43
|
|
|
public $icons ; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* Configurator constructor. |
47
|
|
|
*/ |
48
|
|
|
public function __construct() |
49
|
|
|
{ |
50
|
|
|
$config = require \dirname(__DIR__, 2) . '/config/config.php'; |
51
|
|
|
|
52
|
|
|
$this->name = $config->name; |
53
|
|
|
// $this->paths = $config->paths; |
54
|
|
|
$this->uploadFolders = $config->uploadFolders; |
55
|
|
|
$this->copyBlankFiles = $config->copyBlankFiles; |
56
|
|
|
$this->copyTestFolders = $config->copyTestFolders; |
57
|
|
|
$this->templateFolders = $config->templateFolders; |
58
|
|
|
$this->oldFiles = $config->oldFiles; |
59
|
|
|
$this->oldFolders = $config->oldFolders; |
60
|
|
|
$this->renameTables = $config->renameTables; |
61
|
|
|
$this->renameColumns = $config->renameColumns; |
62
|
|
|
$this->moduleStats = $config->moduleStats; |
63
|
|
|
$this->modCopyright = $config->modCopyright; |
64
|
|
|
|
65
|
|
|
$this->icons = require \dirname(__DIR__, 2) . '/config/icons.php'; |
66
|
|
|
$this->paths = require \dirname(__DIR__, 2) . '/config/paths.php'; |
67
|
|
|
} |
68
|
|
|
} |
69
|
|
|
|