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: use Aurora\System\SettingsProperty;
11:
12: /**
13: * @property bool $Disabled
14: * @property string $ServerModuleName
15: * @property string $HashModuleName
16: * @property string $CustomLogoUrl
17: * @property string $InfoText
18: * @property string $BottomInfoHtmlText
19: * @property array $DomainList
20: */
21:
22: class Settings extends \Aurora\System\Module\Settings
23: {
24: protected function initDefaults()
25: {
26: $this->aContainer = [
27: "Disabled" => new SettingsProperty(
28: false,
29: "bool",
30: null,
31: "Setting to true disables the module",
32: ),
33: "ServerModuleName" => new SettingsProperty(
34: "MailSignup",
35: "string",
36: null,
37: "Defines name of the module responsible for signup",
38: ),
39: "HashModuleName" => new SettingsProperty(
40: "signup",
41: "string",
42: null,
43: "Defines hash of the module responsible for signup",
44: ),
45: "CustomLogoUrl" => new SettingsProperty(
46: "",
47: "string",
48: null,
49: "Defines URL of logo image used on signup page",
50: ),
51: "InfoText" => new SettingsProperty(
52: "",
53: "string",
54: null,
55: "Defines additional text message shown on signup page",
56: ),
57: "BottomInfoHtmlText" => new SettingsProperty(
58: "",
59: "string",
60: null,
61: "Defines bottom text message shown on signup page",
62: ),
63: "DomainList" => new SettingsProperty(
64: [],
65: "array",
66: null,
67: "Defines list of domains signup feature is available for",
68: ),
69: ];
70: }
71: }
72: