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