1: | <?php |
2: | |
3: | |
4: | |
5: | |
6: | |
7: | |
8: | namespace Aurora\Modules\InvitationLinkWebclient; |
9: | |
10: | use Aurora\System\SettingsProperty; |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | |
19: | |
20: | |
21: | |
22: | |
23: | |
24: | |
25: | |
26: | |
27: | class Settings extends \Aurora\System\Module\Settings |
28: | { |
29: | protected function initDefaults() |
30: | { |
31: | $this->aContainer = [ |
32: | "Disabled" => new SettingsProperty( |
33: | false, |
34: | "bool", |
35: | null, |
36: | "Setting to true disables the module", |
37: | ), |
38: | "RegisterModuleName" => new SettingsProperty( |
39: | "StandardRegisterFormWebclient", |
40: | "string", |
41: | null, |
42: | "Denotes the module used for providing signup interface", |
43: | ), |
44: | "LoginModuleName" => new SettingsProperty( |
45: | "StandardLoginFormWebclient", |
46: | "string", |
47: | null, |
48: | "Denotes the module used for providing login interface", |
49: | ), |
50: | "EnableSendInvitationLinkViaMail" => new SettingsProperty( |
51: | true, |
52: | "bool", |
53: | null, |
54: | "If true, the module will be sending invitation links via email", |
55: | ), |
56: | "NotificationType" => new SettingsProperty( |
57: | "mail", |
58: | "string", |
59: | null, |
60: | "Denotes how the mail is sent - mail for standard mail() function of PHP, smtp for sending via SMTP protocol", |
61: | ), |
62: | "NotificationEmail" => new SettingsProperty( |
63: | "mail@localhost", |
64: | "string", |
65: | null, |
66: | "Sender email address used in mail messages sent by this module", |
67: | ), |
68: | "NotificationHost" => new SettingsProperty( |
69: | "localhost", |
70: | "string", |
71: | null, |
72: | "SMTP server host used for sending mail by this module", |
73: | ), |
74: | "NotificationPort" => new SettingsProperty( |
75: | "25", |
76: | "string", |
77: | null, |
78: | "SMTP server port number", |
79: | ), |
80: | "NotificationUseAuth" => new SettingsProperty( |
81: | false, |
82: | "bool", |
83: | null, |
84: | "If true, SMTP authentication is used to connect to SMTP server", |
85: | ), |
86: | "NotificationLogin" => new SettingsProperty( |
87: | "", |
88: | "string", |
89: | null, |
90: | "Username used to authenticate on SMTP server", |
91: | ), |
92: | "NotificationPassword" => new SettingsProperty( |
93: | "", |
94: | "string", |
95: | null, |
96: | "Password used to authenticate on SMTP server", |
97: | ), |
98: | "SMTPSecure" => new SettingsProperty( |
99: | "", |
100: | "string", |
101: | null, |
102: | "Set to 'ssl' or 'tls' to use SSL or STARTTLS respectively", |
103: | ), |
104: | ]; |
105: | } |
106: | } |
107: | |