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\FilesWebclient;
9:
10: use Aurora\System\SettingsProperty;
11:
12: /**
13: * @property bool $Disabled
14: * @property bool $EditFileNameWithoutExtension
15: * @property bool $ShowCommonSettings
16: * @property bool $ServerUrlRewriteBase
17: * @property bool $ServerUseUrlRewrite
18: * @property bool $ShowFilesApps
19: * @property array $BottomLeftCornerLinks
20: * @property array $AvailableFor
21: * @property bool $PublicLinksEnabled
22: * @property array $FilesSortBy
23: */
24:
25: class Settings extends \Aurora\System\Module\Settings
26: {
27: protected function initDefaults()
28: {
29: $this->aContainer = [
30: "Disabled" => new SettingsProperty(
31: false,
32: "bool",
33: null,
34: "Setting to true disables the module",
35: ),
36: "EditFileNameWithoutExtension" => new SettingsProperty(
37: false,
38: "bool",
39: null,
40: "If true, only filename can be changed when renaming file while extension is kept intact",
41: ),
42: "ShowCommonSettings" => new SettingsProperty(
43: false,
44: "bool",
45: null,
46: "If true, allow for changing basic settings of files functionality, such as enabling table view and preview pane",
47: ),
48: "ServerUrlRewriteBase" => new SettingsProperty(
49: false,
50: "bool",
51: null,
52: "Used for providing short URLs e.g. for file downloads, requires supplying rewrite rules in webserver config",
53: ),
54: "ServerUseUrlRewrite" => new SettingsProperty(
55: false,
56: "bool",
57: null,
58: "Rewrite base for short URLs",
59: ),
60: "ShowFilesApps" => new SettingsProperty(
61: true,
62: "bool",
63: null,
64: "Enables displaying information on desktop and mobile file storage apps in Files tab of Settings screen",
65: ),
66: "BottomLeftCornerLinks" => new SettingsProperty(
67: [],
68: "array",
69: null,
70: "Defines custom links shown at the bottom of left pane in Files",
71: ),
72: "AvailableFor" => new SettingsProperty(
73: [
74: "MailWebclient"
75: ],
76: "array",
77: null,
78: "Automatically provide this feature if one of the listed modules is requested by the entry point",
79: ),
80: "PublicLinksEnabled" => new SettingsProperty(
81: true,
82: "bool",
83: null,
84: "If true, allows for creating basic Public links in addition to secure ones",
85: ),
86: "FilesSortBy" => new SettingsProperty(
87: [
88: "Allow" => false,
89: "DisplayOptions" => [
90: "Filename",
91: "Size",
92: "Modified"
93: ],
94: "DefaultSortBy" => "Filename",
95: "DefaultSortOrder" => "Asc"
96: ],
97: "array",
98: null,
99: "Defines a set of rules for sorting files and folders. Filename|Size|Modified. DefaultSortOrder - Asc|Desc"
100: ),
101: ];
102: }
103: }
104: