1 | <?php |
||
15 | class settings |
||
16 | { |
||
17 | /** @var \phpbb\filesystem\filesystem */ |
||
18 | protected $filesystem; |
||
19 | |||
20 | /** @var string */ |
||
21 | protected $config_path; |
||
22 | |||
23 | /** @var string phpEx */ |
||
24 | protected $php_ext; |
||
25 | |||
26 | /** @var string */ |
||
27 | protected $config_template; |
||
28 | |||
29 | /** |
||
30 | * Constructor |
||
31 | * |
||
32 | * @param \phpbb\filesystem\filesystem $filesystem File system |
||
33 | * @param string $config_path Filemanager config path |
||
34 | * @param string $php_ext phpEx |
||
35 | */ |
||
36 | 2 | public function __construct(\phpbb\filesystem\filesystem $filesystem, $config_path, $php_ext) |
|
44 | |||
45 | /** |
||
46 | * @return void |
||
47 | */ |
||
48 | 2 | public function init() |
|
59 | |||
60 | /** |
||
61 | * @return array|void |
||
62 | */ |
||
63 | 2 | public function get_settings() |
|
73 | |||
74 | /** |
||
75 | * @param string $file |
||
76 | * @return void |
||
77 | */ |
||
78 | 2 | public function set_config_template($file) |
|
82 | |||
83 | /** |
||
84 | * @param array $settings |
||
85 | * @return void |
||
86 | */ |
||
87 | 1 | public function save(array $settings) |
|
101 | |||
102 | /** |
||
103 | * @param mixed $curr_val |
||
104 | * @param mixed $value |
||
105 | * @return void |
||
106 | */ |
||
107 | 1 | protected function type_cast_config_value($curr_val, &$value) |
|
120 | |||
121 | /** |
||
122 | * @return string |
||
123 | */ |
||
124 | 2 | protected function get_config_file() |
|
128 | } |
||
129 |