1 | <?php |
||
8 | class Config |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | public static $configDir = null; |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected static $dataConfig = array(); |
||
18 | |||
19 | /** |
||
20 | * @param $name |
||
21 | * @param $default |
||
22 | * @return mixed |
||
23 | */ |
||
24 | 9 | public static function get($name, $default = null) |
|
39 | |||
40 | /** |
||
41 | * @param $filename |
||
42 | * @return array|mixed |
||
43 | */ |
||
44 | 9 | public static function load($filename) |
|
53 | |||
54 | /** |
||
55 | * Init $configDir |
||
56 | */ |
||
57 | protected static function initConfigDir() |
||
61 | } |
||
62 |