| @@ 1220-1225 (lines=6) @@ | ||
| 1217 | $storage[$classPath[1]] = []; |
|
| 1218 | } |
|
| 1219 | if ($id) { |
|
| 1220 | foreach ($storage[$classPath[1]] as $key => $item) { |
|
| 1221 | if ($item[$col] == $id) { |
|
| 1222 | $storage[$classPath[1]][$key] = $this->_params; |
|
| 1223 | break; |
|
| 1224 | } |
|
| 1225 | } |
|
| 1226 | } else { |
|
| 1227 | $id = !empty($storage['scheme'][$classPath[1]]['ai']) ? $storage['scheme'][$classPath[1]]['ai'] : 1; |
|
| 1228 | $this->$col = $id; |
|
| @@ 1422-1428 (lines=7) @@ | ||
| 1419 | if (empty($storage[$classPath[1]])) { |
|
| 1420 | $storage[$classPath[1]] = []; |
|
| 1421 | } |
|
| 1422 | foreach ($storage[$classPath[1]] as $key => $item) { |
|
| 1423 | ||
| 1424 | if ($item[$col] == $id) { |
|
| 1425 | unset($storage[$classPath[1]][$key]); |
|
| 1426 | break; |
|
| 1427 | } |
|
| 1428 | } |
|
| 1429 | if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
|
| 1430 | $moduleConfig['storage'][$appType] = $storage; |
|
| 1431 | } else { |
|