|
@@ 1044-1048 (lines=5) @@
|
| 1041 |
|
return false; |
| 1042 |
|
} |
| 1043 |
|
$classPath = explode('\\', get_called_class()); |
| 1044 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1045 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1046 |
|
} else { |
| 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'])) { |
|
@@ 1085-1089 (lines=5) @@
|
| 1082 |
|
*/ |
| 1083 |
|
public static function getListFromModuleStorage($options = []) { |
| 1084 |
|
$classPath = explode('\\', get_called_class()); |
| 1085 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1086 |
|
$moduleConfig = Config::share($classPath[0]); |
| 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; |
|
@@ 1151-1155 (lines=5) @@
|
| 1148 |
|
} else { |
| 1149 |
|
$appType = $options['appType']; |
| 1150 |
|
} |
| 1151 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1152 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1153 |
|
} else { |
| 1154 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1155 |
|
} |
| 1156 |
|
if (!empty($moduleConfig['storage'][$appType][$classPath[1]])) { |
| 1157 |
|
$items = $moduleConfig['storage'][$appType][$classPath[1]]; |
| 1158 |
|
if (empty($options['where'])) { |
|
@@ 1381-1385 (lines=5) @@
|
| 1378 |
|
$appType = ''; |
| 1379 |
|
$classPath = explode('\\', get_called_class()); |
| 1380 |
|
|
| 1381 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1382 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1383 |
|
} else { |
| 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'])) { |
|
@@ 1584-1588 (lines=5) @@
|
| 1581 |
|
$id = $this->pk(); |
| 1582 |
|
$appType = ''; |
| 1583 |
|
$classPath = explode('\\', get_called_class()); |
| 1584 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1585 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1586 |
|
} else { |
| 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'])) { |