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\MailSignupDirectadmin;
9:
10: use Aurora\System\SettingsProperty;
11:
12: /**
13: * @property bool $Disabled
14: * @property string $DirectAdminURL
15: * @property string $AdminUser
16: * @property string $AdminPassword
17: * @property int $UserDefaultQuotaMB
18: */
19:
20: class Settings extends \Aurora\System\Module\Settings
21: {
22: protected function initDefaults()
23: {
24: $this->aContainer = [
25: "Disabled" => new SettingsProperty(
26: false,
27: "bool",
28: null,
29: "Setting to true disables the module",
30: ),
31: "DirectAdminURL" => new SettingsProperty(
32: "http://localhost:2222",
33: "string",
34: null,
35: "Defines main URL of DirectAdmin installation",
36: ),
37: "AdminUser" => new SettingsProperty(
38: "",
39: "string",
40: null,
41: "Username of DirectAdmin administrator account",
42: ),
43: "AdminPassword" => new SettingsProperty(
44: "",
45: "string",
46: null,
47: "Password of DirectAdmin administrator account. Will be automatically encrypted.",
48: ),
49: "UserDefaultQuotaMB" => new SettingsProperty(
50: 20,
51: "int",
52: null,
53: "Default quota of new email accounts created on DirectAdmin",
54: ),
55: ];
56: }
57: }
58: