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