1 | <?php |
||
36 | class Core { |
||
37 | use Singleton; |
||
38 | /** |
||
39 | * Is object constructed |
||
40 | * @var bool |
||
41 | */ |
||
42 | protected $constructed = false; |
||
43 | /** |
||
44 | * @var mixed[] |
||
45 | */ |
||
46 | protected $config = []; |
||
47 | /** |
||
48 | * Loading of base system configuration, creating of missing directories |
||
49 | */ |
||
50 | protected function construct () { |
||
55 | /** |
||
56 | * Load main.json config file and return array of it contents |
||
57 | * |
||
58 | * @return array |
||
59 | */ |
||
60 | protected function load_config () { |
||
82 | /** |
||
83 | * Getting of base configuration parameter |
||
84 | * |
||
85 | * @param string $item |
||
86 | * |
||
87 | * @return false|string |
||
88 | */ |
||
89 | function get ($item) { |
||
92 | /** |
||
93 | * Setting of base configuration parameter (available only at object construction) |
||
94 | * |
||
95 | * @param string $item |
||
96 | * @param mixed $value |
||
97 | */ |
||
98 | function set ($item, $value) { |
||
103 | /** |
||
104 | * Getting of base configuration parameter |
||
105 | * |
||
106 | * @param string $item |
||
107 | * |
||
108 | * @return false|string |
||
109 | */ |
||
110 | function __get ($item) { |
||
113 | /** |
||
114 | * Setting of base configuration parameter (available only at object construction) |
||
115 | * |
||
116 | * @param string $item |
||
117 | * @param mixed $value |
||
118 | */ |
||
119 | function __set ($item, $value) { |
||
122 | } |
||
123 |