@@ 1050-1057 (lines=8) @@ | ||
1047 | $moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
|
1048 | } |
|
1049 | $appType = App::$cur->type; |
|
1050 | if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
|
1051 | if (!empty($options['appType'])) { |
|
1052 | $appType = $options['appType']; |
|
1053 | } |
|
1054 | $storage = !empty($moduleConfig['storage'][$appType]) ? $moduleConfig['storage'][$appType] : []; |
|
1055 | } else { |
|
1056 | $storage = !empty($moduleConfig['storage']) ? $moduleConfig['storage'] : []; |
|
1057 | } |
|
1058 | if (!empty($storage[$classPath[1]])) { |
|
1059 | $items = $storage[$classPath[1]]; |
|
1060 | $class = get_called_class(); |
|
@@ 1090-1099 (lines=10) @@ | ||
1087 | } else { |
|
1088 | $moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
|
1089 | } |
|
1090 | if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
|
1091 | if (empty($options['appType'])) { |
|
1092 | $appType = App::$cur->type; |
|
1093 | } else { |
|
1094 | $appType = $options['appType']; |
|
1095 | } |
|
1096 | $storage = !empty($moduleConfig['storage'][$appType]) ? $moduleConfig['storage'][$appType] : []; |
|
1097 | } else { |
|
1098 | $storage = !empty($moduleConfig['storage']) ? $moduleConfig['storage'] : []; |
|
1099 | } |
|
1100 | if (!empty($storage[$classPath[1]])) { |
|
1101 | $items = []; |
|
1102 | $class = get_called_class(); |
|
@@ 1387-1396 (lines=10) @@ | ||
1384 | $moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
|
1385 | } |
|
1386 | ||
1387 | if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
|
1388 | if (empty($options['appType'])) { |
|
1389 | $appType = App::$cur->type; |
|
1390 | } else { |
|
1391 | $appType = $options['appType']; |
|
1392 | } |
|
1393 | $storage = !empty($moduleConfig['storage'][$appType]) ? $moduleConfig['storage'][$appType] : []; |
|
1394 | } else { |
|
1395 | $storage = !empty($moduleConfig['storage']) ? $moduleConfig['storage'] : []; |
|
1396 | } |
|
1397 | if (empty($storage[$classPath[1]])) { |
|
1398 | $storage[$classPath[1]] = []; |
|
1399 | } |
|
@@ 1590-1599 (lines=10) @@ | ||
1587 | $moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
|
1588 | } |
|
1589 | ||
1590 | if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
|
1591 | if (empty($options['appType'])) { |
|
1592 | $appType = App::$cur->type; |
|
1593 | } else { |
|
1594 | $appType = $options['appType']; |
|
1595 | } |
|
1596 | $storage = !empty($moduleConfig['storage'][$appType]) ? $moduleConfig['storage'][$appType] : []; |
|
1597 | } else { |
|
1598 | $storage = !empty($moduleConfig['storage']) ? $moduleConfig['storage'] : []; |
|
1599 | } |
|
1600 | if (empty($storage[$classPath[1]])) { |
|
1601 | $storage[$classPath[1]] = []; |
|
1602 | } |