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