1: | <?php |
2: | /** |
3: | * This code is licensed under AGPLv3 license or Afterlogic Software License |
4: | * if commercial version of the product was purchased. |
5: | * For full statements of the licenses see LICENSE-AFTERLOGIC and LICENSE-AGPL3 files. |
6: | */ |
7: | |
8: | namespace Aurora\Modules\SecuritySettingsWebclient; |
9: | |
10: | /** |
11: | * @license https://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0 |
12: | * @license https://afterlogic.com/products/common-licensing Afterlogic Software License |
13: | * @copyright Copyright (c) 2023, Afterlogic Corp. |
14: | * |
15: | * @property Settings $oModuleSettings |
16: | * |
17: | * @package Modules |
18: | */ |
19: | class Module extends \Aurora\System\Module\AbstractWebclientModule |
20: | { |
21: | /** |
22: | * @return Module |
23: | */ |
24: | public static function getInstance() |
25: | { |
26: | return parent::getInstance(); |
27: | } |
28: | |
29: | /** |
30: | * @return Module |
31: | */ |
32: | public static function Decorator() |
33: | { |
34: | return parent::Decorator(); |
35: | } |
36: | |
37: | /** |
38: | * @return Settings |
39: | */ |
40: | public function getModuleSettings() |
41: | { |
42: | return $this->oModuleSettings; |
43: | } |
44: | |
45: | public function GetSettings() |
46: | { |
47: | \Aurora\System\Api::checkUserRoleIsAtLeast(\Aurora\System\Enums\UserRole::Anonymous); |
48: | |
49: | return [ |
50: | 'ModulesOrder' => $this->oModuleSettings->ModulesOrder |
51: | ]; |
52: | } |
53: | } |
54: |