1 | <?php |
||
15 | class Config |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * Holds the configuration data |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $_config = []; |
||
23 | |||
24 | protected $temp_conf = []; |
||
25 | |||
26 | /** |
||
27 | * Set configuration value by key |
||
28 | * |
||
29 | * @param string $key |
||
30 | * @param mixed $value |
||
31 | * @param boolean $force |
||
32 | * @return boolean |
||
33 | * @throws ConfigInvalidException |
||
34 | */ |
||
35 | public function set($key, $value = null, $force = false) |
||
51 | |||
52 | /** |
||
53 | * Get configuration value by key |
||
54 | * @param string $key |
||
55 | * @return mixed |
||
56 | * @throws ConfigInvalidException |
||
57 | */ |
||
58 | public function get($key) |
||
70 | |||
71 | /** |
||
72 | * @param $key |
||
73 | * @return array|mixed |
||
74 | * @throws ConfigInvalidException |
||
75 | */ |
||
76 | private function recursive($key) |
||
92 | |||
93 | } |