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\Dav;
9:
10: use Aurora\System\SettingsProperty;
11:
12: /**
13: * @property bool $Disabled
14: * @property bool $AdminPrincipal
15: * @property bool $CaldavNotification
16: * @property bool $FilesSharing
17: * @property bool $LogBody
18: * @property bool $UseBrowserPlugin
19: * @property bool $UseDigestAuth
20: * @property string $ExternalHostNameOfDAVServer
21: * @property string $ProductUrlForExternalClients
22: * @property bool $UseFullEmailForLogin
23: * @property string $DomainForLoginWithoutEmail
24: */
25:
26: class Settings extends \Aurora\System\Module\Settings
27: {
28: protected function initDefaults()
29: {
30: $this->aContainer = [
31: "Disabled" => new SettingsProperty(
32: false,
33: "bool",
34: null,
35: "Setting to true disables the module",
36: ),
37: "AdminPrincipal" => new SettingsProperty(
38: false,
39: "bool",
40: null,
41: "Email address specified here will automatically be added to the list of ACL's. They will effectively receive {DAV:}all privileges, as a protected privilege",
42: ),
43: "CaldavNotification" => new SettingsProperty(
44: false,
45: "bool",
46: null,
47: "Reserved for future use",
48: ),
49: "FilesSharing" => new SettingsProperty(
50: false,
51: "bool",
52: null,
53: "Not currently used",
54: ),
55: "LogBody" => new SettingsProperty(
56: false,
57: "bool",
58: null,
59: "Enables verbose logging of DAV server responses to sabredav- log file",
60: ),
61: "UseBrowserPlugin" => new SettingsProperty(
62: false,
63: "bool",
64: null,
65: "If true, allows for accessing DAV URL from web browser and navigating the account structure and data",
66: ),
67: "UseDigestAuth" => new SettingsProperty(
68: false,
69: "bool",
70: null,
71: "If true, enables the use of Digest auth instead of default Basic auth",
72: ),
73: "ExternalHostNameOfDAVServer" => new SettingsProperty(
74: "",
75: "string",
76: null,
77: "Denotes hostname for DAV server access",
78: ),
79: "ProductUrlForExternalClients" => new SettingsProperty(
80: "",
81: "string",
82: null,
83: "Product url for external clients",
84: ),
85: "UseFullEmailForLogin" => new SettingsProperty(
86: true,
87: "bool",
88: null,
89: "If true, full email address is used for DAV login; if fals, username part of email address is used",
90: ),
91: "DomainForLoginWithoutEmail" => new SettingsProperty(
92: "",
93: "string",
94: null,
95: "If UseFullEmailForLogin is false, this value denotes domain part of user's email address",
96: ),
97: ];
98: }
99: }
100: