@@ 1048-1055 (lines=8) @@ | ||
1045 | $moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
|
1046 | } |
|
1047 | $appType = App::$cur->type; |
|
1048 | if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
|
1049 | if (!empty($options['appType'])) { |
|
1050 | $appType = $options['appType']; |
|
1051 | } |
|
1052 | $storage = !empty($moduleConfig['storage'][$appType]) ? $moduleConfig['storage'][$appType] : []; |
|
1053 | } else { |
|
1054 | $storage = !empty($moduleConfig['storage']) ? $moduleConfig['storage'] : []; |
|
1055 | } |
|
1056 | if (!empty($storage[$classPath[1]])) { |
|
1057 | $items = $storage[$classPath[1]]; |
|
1058 | $class = get_called_class(); |
|
@@ 1088-1097 (lines=10) @@ | ||
1085 | } else { |
|
1086 | $moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
|
1087 | } |
|
1088 | if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
|
1089 | if (empty($options['appType'])) { |
|
1090 | $appType = App::$cur->type; |
|
1091 | } else { |
|
1092 | $appType = $options['appType']; |
|
1093 | } |
|
1094 | $storage = !empty($moduleConfig['storage'][$appType]) ? $moduleConfig['storage'][$appType] : []; |
|
1095 | } else { |
|
1096 | $storage = !empty($moduleConfig['storage']) ? $moduleConfig['storage'] : []; |
|
1097 | } |
|
1098 | if (!empty($storage[$classPath[1]])) { |
|
1099 | $items = []; |
|
1100 | $class = get_called_class(); |
|
@@ 1380-1389 (lines=10) @@ | ||
1377 | $moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
|
1378 | } |
|
1379 | ||
1380 | if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
|
1381 | if (empty($options['appType'])) { |
|
1382 | $appType = App::$cur->type; |
|
1383 | } else { |
|
1384 | $appType = $options['appType']; |
|
1385 | } |
|
1386 | $storage = !empty($moduleConfig['storage'][$appType]) ? $moduleConfig['storage'][$appType] : []; |
|
1387 | } else { |
|
1388 | $storage = !empty($moduleConfig['storage']) ? $moduleConfig['storage'] : []; |
|
1389 | } |
|
1390 | if (empty($storage[$classPath[1]])) { |
|
1391 | $storage[$classPath[1]] = []; |
|
1392 | } |
|
@@ 1583-1592 (lines=10) @@ | ||
1580 | $moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
|
1581 | } |
|
1582 | ||
1583 | if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
|
1584 | if (empty($options['appType'])) { |
|
1585 | $appType = App::$cur->type; |
|
1586 | } else { |
|
1587 | $appType = $options['appType']; |
|
1588 | } |
|
1589 | $storage = !empty($moduleConfig['storage'][$appType]) ? $moduleConfig['storage'][$appType] : []; |
|
1590 | } else { |
|
1591 | $storage = !empty($moduleConfig['storage']) ? $moduleConfig['storage'] : []; |
|
1592 | } |
|
1593 | if (empty($storage[$classPath[1]])) { |
|
1594 | $storage[$classPath[1]] = []; |
|
1595 | } |