@@ 1208-1219 (lines=12) @@ | ||
1205 | return $result; |
|
1206 | } |
|
1207 | ||
1208 | public function resetConfig($path='') { |
|
1209 | global $ARConfig; |
|
1210 | $path = $this->make_path($path); |
|
1211 | if ($ARConfig->cache[$path]) { |
|
1212 | $path = preg_quote($path,'/'); |
|
1213 | $keys = preg_grep('/^'.$path.'/',array_keys($ARConfig->cache)); |
|
1214 | foreach ($keys as $cachepath) { |
|
1215 | unset($ARConfig->cache[$cachepath]); |
|
1216 | unset($ARConfig->pinpcache[$cachepath]); |
|
1217 | } |
|
1218 | } |
|
1219 | } |
|
1220 | ||
1221 | public function clearChildConfigs($path='') { |
|
1222 | global $ARConfig; |
|
@@ 1221-1233 (lines=13) @@ | ||
1218 | } |
|
1219 | } |
|
1220 | ||
1221 | public function clearChildConfigs($path='') { |
|
1222 | global $ARConfig; |
|
1223 | $path = $this->make_path($path); |
|
1224 | if ($ARConfig->cache[$path]) { |
|
1225 | $path = preg_quote($path,'/'); |
|
1226 | $keys = preg_grep('/^'.$path.'./',array_keys($ARConfig->cache)); |
|
1227 | foreach($keys as $cachepath) { |
|
1228 | unset($ARConfig->cache[$cachepath]); |
|
1229 | unset($ARConfig->pinpcache[$cachepath]); |
|
1230 | unset($ARConfig->libraries[$cachepath]); |
|
1231 | } |
|
1232 | } |
|
1233 | } |
|
1234 | ||
1235 | protected function getConfig() { |
|
1236 | global $ARConfig, $ARCurrent, $ARConfigChecked; |