|
@@ 1073-1077 (lines=5) @@
|
| 1070 |
|
return false; |
| 1071 |
|
} |
| 1072 |
|
$classPath = explode('\\', get_called_class()); |
| 1073 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1074 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1075 |
|
} else { |
| 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'])) { |
|
@@ 1114-1118 (lines=5) @@
|
| 1111 |
|
*/ |
| 1112 |
|
public static function getListFromModuleStorage($options = []) { |
| 1113 |
|
$classPath = explode('\\', get_called_class()); |
| 1114 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1115 |
|
$moduleConfig = Config::share($classPath[0]); |
| 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; |
|
@@ 1184-1188 (lines=5) @@
|
| 1181 |
|
} else { |
| 1182 |
|
$appType = $options['appType']; |
| 1183 |
|
} |
| 1184 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1185 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1186 |
|
} else { |
| 1187 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1188 |
|
} |
| 1189 |
|
if (!empty($moduleConfig['storage'][$appType][$classPath[1]])) { |
| 1190 |
|
$items = $moduleConfig['storage'][$appType][$classPath[1]]; |
| 1191 |
|
if (empty($options['where'])) { |
|
@@ 1424-1428 (lines=5) @@
|
| 1421 |
|
$appType = ''; |
| 1422 |
|
$classPath = explode('\\', get_called_class()); |
| 1423 |
|
|
| 1424 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1425 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1426 |
|
} else { |
| 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'])) { |
|
@@ 1635-1639 (lines=5) @@
|
| 1632 |
|
$id = $this->pk(); |
| 1633 |
|
$appType = ''; |
| 1634 |
|
$classPath = explode('\\', get_called_class()); |
| 1635 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1636 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1637 |
|
} else { |
| 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'])) { |