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\MailChangePasswordPoppassdExtendedPlugin;
9:
10: use Aurora\System\SettingsProperty;
11:
12: /**
13: * @property bool $Disabled
14: * @property array $SupportedServers
15: * @property string $Host
16: * @property int $Port
17: */
18:
19: class Settings extends \Aurora\System\Module\Settings
20: {
21: protected function initDefaults()
22: {
23: $this->aContainer = [
24: "Disabled" => new SettingsProperty(
25: false,
26: "bool",
27: null,
28: "Setting to true disables the module",
29: ),
30: "SupportedServers" => new SettingsProperty(
31: [
32: "*"
33: ],
34: "array",
35: null,
36: "If IMAP Server value of the mailserver is in this list, password change is enabled for it. * enables it for all the servers.",
37: ),
38: "Host" => new SettingsProperty(
39: "127.0.0.1",
40: "string",
41: null,
42: "Defines hostname used to connect to POPPASSD service",
43: ),
44: "Port" => new SettingsProperty(
45: 106,
46: "int",
47: null,
48: "Defines port number used to connect to POPPASSD service",
49: ),
50: ];
51: }
52: }
53: