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\MailSignup;
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: * @package Modules
16: */
17: class Module extends \Aurora\System\Module\AbstractModule
18: {
19: public function init()
20: {
21: }
22:
23: /**
24: * Obtains list of module settings for authenticated user.
25: * @return array
26: */
27: public function GetSettings()
28: {
29: \Aurora\System\Api::checkUserRoleIsAtLeast(\Aurora\System\Enums\UserRole::Anonymous);
30:
31: return [
32: 'ServerModuleName' => $this->getConfig('ServerModuleName', 'MailSignup'),
33: 'HashModuleName' => $this->getConfig('HashModuleName', 'signup'),
34: 'CustomLogoUrl' => $this->getConfig('CustomLogoUrl', ''),
35: 'InfoText' => $this->getConfig('InfoText', ''),
36: 'BottomInfoHtmlText' => $this->getConfig('BottomInfoHtmlText', ''),
37: 'DomainList' => $this->getConfig('DomainList', [])
38: ];
39: }
40:
41: /**
42: * All actions occur in subscriptions
43: *
44: * @param string $Name
45: * @param string $Login
46: * @param string $Password
47: * @return boolean
48: */
49: public function Signup($Name, $Login, $Password)
50: {
51: return false;
52: }
53: }
54: