|
@@ 874-878 (lines=5) @@
|
| 871 |
|
return false; |
| 872 |
|
} |
| 873 |
|
$classPath = explode('\\', get_called_class()); |
| 874 |
|
if (!empty(static::$storage['options']['share'])) { |
| 875 |
|
$moduleConfig = Config::share($classPath[0]); |
| 876 |
|
} else { |
| 877 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 878 |
|
} |
| 879 |
|
$appType = App::$cur->type; |
| 880 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 881 |
|
if (!empty($options['appType'])) { |
|
@@ 914-918 (lines=5) @@
|
| 911 |
|
public static function getListFromModuleStorage($options = []) |
| 912 |
|
{ |
| 913 |
|
$classPath = explode('\\', get_called_class()); |
| 914 |
|
if (!empty(static::$storage['options']['share'])) { |
| 915 |
|
$moduleConfig = Config::share($classPath[0]); |
| 916 |
|
} else { |
| 917 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 918 |
|
} |
| 919 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 920 |
|
if (empty($options['appType'])) { |
| 921 |
|
$appType = App::$cur->type; |
|
@@ 981-985 (lines=5) @@
|
| 978 |
|
} else { |
| 979 |
|
$appType = $options['appType']; |
| 980 |
|
} |
| 981 |
|
if (!empty(static::$storage['options']['share'])) { |
| 982 |
|
$moduleConfig = Config::share($classPath[0]); |
| 983 |
|
} else { |
| 984 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 985 |
|
} |
| 986 |
|
if (!empty($moduleConfig['storage'][$appType][$classPath[1]])) { |
| 987 |
|
$items = $moduleConfig['storage'][$appType][$classPath[1]]; |
| 988 |
|
if (empty($options['where'])) { |
|
@@ 1200-1204 (lines=5) @@
|
| 1197 |
|
$appType = ''; |
| 1198 |
|
$classPath = explode('\\', get_called_class()); |
| 1199 |
|
|
| 1200 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1201 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1202 |
|
} else { |
| 1203 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1204 |
|
} |
| 1205 |
|
|
| 1206 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 1207 |
|
if (empty($options['appType'])) { |
|
@@ 1403-1407 (lines=5) @@
|
| 1400 |
|
$id = $this->pk(); |
| 1401 |
|
$appType = ''; |
| 1402 |
|
$classPath = explode('\\', get_called_class()); |
| 1403 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1404 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1405 |
|
} else { |
| 1406 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1407 |
|
} |
| 1408 |
|
|
| 1409 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 1410 |
|
if (empty($options['appType'])) { |