-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSettings.php
More file actions
85 lines (81 loc) · 2.88 KB
/
Settings.php
File metadata and controls
85 lines (81 loc) · 2.88 KB
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
<?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\Files;
use Aurora\System\SettingsProperty;
/**
* @property bool $Disabled
* @property bool $EnableUploadSizeLimit
* @property int $UploadSizeLimitMb
* @property int $UserSpaceLimitMb
* @property int $TenantSpaceLimitMb
* @property bool $ShowUserSpaceLimit
* @property bool $AllowTrash
* @property bool $AllowFavorites
* @property bool $DisableShortcuts
*/
class Settings extends \Aurora\System\Module\Settings
{
protected function initDefaults()
{
$this->aContainer = [
"Disabled" => new SettingsProperty(
false,
"bool",
null,
"Setting to true disables the module",
),
"EnableUploadSizeLimit" => new SettingsProperty(
true,
"bool",
null,
"If true, upload file size limit is set",
),
"UploadSizeLimitMb" => new SettingsProperty(
100,
"int",
null,
"Upload file size limit value, in Mbytes. Additionally to the value supplied here, the actual limitation is affected by PHP configuration values post_max_size and upload_max_filesize - the smallest of these 3 values is applied. Note that webserver may add its own limitations, client_max_body_size in Nginx for example.",
),
"UserSpaceLimitMb" => new SettingsProperty(
100,
"int",
null,
"Default filestorage disk space quota for new user accounts created",
),
"TenantSpaceLimitMb" => new SettingsProperty(
1000,
"int",
null,
"With multitenancy enabled, default tenant space quota; with multitenancy disabled, total disk space quota for the installation",
),
"ShowUserSpaceLimit" => new SettingsProperty(
true,
"bool",
null,
"If true, UserSpaceLimitMb setting is shown in admin settings UI",
),
"AllowTrash" => new SettingsProperty(
true,
"bool",
null,
"Setting to true show Trash storage",
),
"AllowFavorites" => new SettingsProperty(
true,
"bool",
null,
"Setting to true show Favorites storage",
),
"DisableShortcuts" => new SettingsProperty(
false,
"bool",
null,
"Setting to true disable shortcuts",
),
];
}
}