1 | <?php |
||
13 | class Config |
||
14 | { |
||
15 | protected static $configArray = array(); |
||
16 | |||
17 | /** |
||
18 | * PRIVATE constructor |
||
19 | */ |
||
20 | private function __construct() |
||
23 | |||
24 | /** |
||
25 | * @param null $defaultValues |
||
26 | */ |
||
27 | public static function init($defaultValues = null) |
||
36 | |||
37 | /** |
||
38 | * @param string $key |
||
39 | * @return mixed |
||
40 | * @throws Exception |
||
41 | */ |
||
42 | public static function getConfigField($key) |
||
56 | |||
57 | /** |
||
58 | * @param $key |
||
59 | * @param $value |
||
60 | */ |
||
61 | public static function setConfigField($key, $value) |
||
69 | |||
70 | /** |
||
71 | * @return array |
||
72 | */ |
||
73 | public static function getConfigArray() |
||
77 | } |
||
78 | } |
||
79 |