|
@@ 1036-1040 (lines=5) @@
|
| 1033 |
|
return false; |
| 1034 |
|
} |
| 1035 |
|
$classPath = explode('\\', get_called_class()); |
| 1036 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1037 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1038 |
|
} else { |
| 1039 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1040 |
|
} |
| 1041 |
|
$appType = App::$cur->type; |
| 1042 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 1043 |
|
if (!empty($options['appType'])) { |
|
@@ 1077-1081 (lines=5) @@
|
| 1074 |
|
*/ |
| 1075 |
|
public static function getListFromModuleStorage($options = []) { |
| 1076 |
|
$classPath = explode('\\', get_called_class()); |
| 1077 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1078 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1079 |
|
} else { |
| 1080 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1081 |
|
} |
| 1082 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 1083 |
|
if (empty($options['appType'])) { |
| 1084 |
|
$appType = App::$cur->type; |
|
@@ 1143-1147 (lines=5) @@
|
| 1140 |
|
} else { |
| 1141 |
|
$appType = $options['appType']; |
| 1142 |
|
} |
| 1143 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1144 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1145 |
|
} else { |
| 1146 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1147 |
|
} |
| 1148 |
|
if (!empty($moduleConfig['storage'][$appType][$classPath[1]])) { |
| 1149 |
|
$items = $moduleConfig['storage'][$appType][$classPath[1]]; |
| 1150 |
|
if (empty($options['where'])) { |
|
@@ 1368-1372 (lines=5) @@
|
| 1365 |
|
$appType = ''; |
| 1366 |
|
$classPath = explode('\\', get_called_class()); |
| 1367 |
|
|
| 1368 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1369 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1370 |
|
} else { |
| 1371 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1372 |
|
} |
| 1373 |
|
|
| 1374 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 1375 |
|
if (empty($options['appType'])) { |
|
@@ 1571-1575 (lines=5) @@
|
| 1568 |
|
$id = $this->pk(); |
| 1569 |
|
$appType = ''; |
| 1570 |
|
$classPath = explode('\\', get_called_class()); |
| 1571 |
|
if (!empty(static::$storage['options']['share'])) { |
| 1572 |
|
$moduleConfig = Config::share($classPath[0]); |
| 1573 |
|
} else { |
| 1574 |
|
$moduleConfig = Config::module($classPath[0], strpos(static::$storage['type'], 'system') !== false); |
| 1575 |
|
} |
| 1576 |
|
|
| 1577 |
|
if (!empty($moduleConfig['storage']['appTypeSplit'])) { |
| 1578 |
|
if (empty($options['appType'])) { |