|
@@ 1093-1097 (lines=5) @@
|
| 1090 |
|
return false; |
| 1091 |
|
} |
| 1092 |
|
$classPath = explode('\\', get_called_class()); |
| 1093 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1094 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1095 |
|
} else { |
| 1096 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1097 |
|
} |
| 1098 |
|
$appType = App::$cur->type; |
| 1099 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 1100 |
|
if (!empty($options['appType'])) { |
|
@@ 1134-1138 (lines=5) @@
|
| 1131 |
|
*/ |
| 1132 |
|
public static function getListFromModuleStorage($options = []) { |
| 1133 |
|
$classPath = explode('\\', get_called_class()); |
| 1134 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1135 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1136 |
|
} else { |
| 1137 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1138 |
|
} |
| 1139 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 1140 |
|
if (empty($options['appType'])) { |
| 1141 |
|
$appType = App::$cur->type; |
|
@@ 1204-1208 (lines=5) @@
|
| 1201 |
|
} else { |
| 1202 |
|
$appType = $options['appType']; |
| 1203 |
|
} |
| 1204 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1205 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1206 |
|
} else { |
| 1207 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1208 |
|
} |
| 1209 |
|
if (!empty($moduleConfig['storage'][$appType][$classPath[1]])) { |
| 1210 |
|
$items = $moduleConfig['storage'][$appType][$classPath[1]]; |
| 1211 |
|
if (empty($options['where'])) { |
|
@@ 1434-1438 (lines=5) @@
|
| 1431 |
|
$appType = ''; |
| 1432 |
|
$classPath = explode('\\', get_called_class()); |
| 1433 |
|
|
| 1434 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1435 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1436 |
|
} else { |
| 1437 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1438 |
|
} |
| 1439 |
|
|
| 1440 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 1441 |
|
if (empty($options['appType'])) { |
|
@@ 1641-1645 (lines=5) @@
|
| 1638 |
|
$id = $this->pk(); |
| 1639 |
|
$appType = ''; |
| 1640 |
|
$classPath = explode('\\', get_called_class()); |
| 1641 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1642 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1643 |
|
} else { |
| 1644 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1645 |
|
} |
| 1646 |
|
|
| 1647 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 1648 |
|
if (empty($options['appType'])) { |