@@ 1079-1086 (lines=8) @@ | ||
1076 | $moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
|
1077 | } |
|
1078 | $appType = App::$cur->type; |
|
1079 | if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
|
1080 | if (!empty($options['appType'])) { |
|
1081 | $appType = $options['appType']; |
|
1082 | } |
|
1083 | $storage = !empty($moduleConfig['storage'][$appType]) ? $moduleConfig['storage'][$appType] : []; |
|
1084 | } else { |
|
1085 | $storage = !empty($moduleConfig['storage']) ? $moduleConfig['storage'] : []; |
|
1086 | } |
|
1087 | if (!empty($storage[$classPath[1]])) { |
|
1088 | $items = $storage[$classPath[1]]; |
|
1089 | $class = get_called_class(); |
|
@@ 1119-1128 (lines=10) @@ | ||
1116 | } else { |
|
1117 | $moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
|
1118 | } |
|
1119 | if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
|
1120 | if (empty($options['appType'])) { |
|
1121 | $appType = App::$cur->type; |
|
1122 | } else { |
|
1123 | $appType = $options['appType']; |
|
1124 | } |
|
1125 | $storage = !empty($moduleConfig['storage'][$appType]) ? $moduleConfig['storage'][$appType] : []; |
|
1126 | } else { |
|
1127 | $storage = !empty($moduleConfig['storage']) ? $moduleConfig['storage'] : []; |
|
1128 | } |
|
1129 | if (!empty($storage[$classPath[1]])) { |
|
1130 | $items = []; |
|
1131 | $class = get_called_class(); |
|
@@ 1430-1439 (lines=10) @@ | ||
1427 | $moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
|
1428 | } |
|
1429 | ||
1430 | if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
|
1431 | if (empty($options['appType'])) { |
|
1432 | $appType = App::$cur->type; |
|
1433 | } else { |
|
1434 | $appType = $options['appType']; |
|
1435 | } |
|
1436 | $storage = !empty($moduleConfig['storage'][$appType]) ? $moduleConfig['storage'][$appType] : []; |
|
1437 | } else { |
|
1438 | $storage = !empty($moduleConfig['storage']) ? $moduleConfig['storage'] : []; |
|
1439 | } |
|
1440 | if (empty($storage[$classPath[1]])) { |
|
1441 | $storage[$classPath[1]] = []; |
|
1442 | } |
|
@@ 1641-1650 (lines=10) @@ | ||
1638 | $moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
|
1639 | } |
|
1640 | ||
1641 | if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
|
1642 | if (empty($options['appType'])) { |
|
1643 | $appType = App::$cur->type; |
|
1644 | } else { |
|
1645 | $appType = $options['appType']; |
|
1646 | } |
|
1647 | $storage = !empty($moduleConfig['storage'][$appType]) ? $moduleConfig['storage'][$appType] : []; |
|
1648 | } else { |
|
1649 | $storage = !empty($moduleConfig['storage']) ? $moduleConfig['storage'] : []; |
|
1650 | } |
|
1651 | if (empty($storage[$classPath[1]])) { |
|
1652 | $storage[$classPath[1]] = []; |
|
1653 | } |