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 | * @param bool $retry |
||
47 | * @return array |
||
48 | */ |
||
49 | 2 | public function get_settings($retry = true) |
|
67 | |||
68 | /** |
||
69 | * @param string $file |
||
70 | * @return void |
||
71 | */ |
||
72 | 2 | public function set_config_template($file) |
|
76 | |||
77 | /** |
||
78 | * @param array $settings |
||
79 | * @return void |
||
80 | */ |
||
81 | 1 | public function save(array $settings) |
|
95 | |||
96 | /** |
||
97 | * @param mixed $curr_val |
||
98 | * @param mixed $value |
||
99 | * @return void |
||
100 | */ |
||
101 | 1 | protected function type_cast_config_value($curr_val, &$value) |
|
114 | |||
115 | /** |
||
116 | * @return string |
||
117 | */ |
||
118 | 2 | protected function get_config_file() |
|
129 | } |
||
130 |