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\Files;
9:
10: use Aurora\System\SettingsProperty;
11:
12: /**
13: * @property bool $Disabled
14: * @property bool $EnableUploadSizeLimit
15: * @property int $UploadSizeLimitMb
16: * @property int $UserSpaceLimitMb
17: * @property int $TenantSpaceLimitMb
18: * @property string $CustomTabTitle
19: */
20:
21: class Settings extends \Aurora\System\Module\Settings
22: {
23: protected function initDefaults()
24: {
25: $this->aContainer = [
26: "Disabled" => new SettingsProperty(
27: false,
28: "bool",
29: null,
30: "Setting to true disables the module",
31: ),
32: "EnableUploadSizeLimit" => new SettingsProperty(
33: true,
34: "bool",
35: null,
36: "If true, upload file size limit is set",
37: ),
38: "UploadSizeLimitMb" => new SettingsProperty(
39: 100,
40: "int",
41: null,
42: "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.",
43: ),
44: "UserSpaceLimitMb" => new SettingsProperty(
45: 100,
46: "int",
47: null,
48: "Default filestorage disk space quota for new user accounts created",
49: ),
50: "TenantSpaceLimitMb" => new SettingsProperty(
51: 1000,
52: "int",
53: null,
54: "With multitenancy enabled, default tenant space quota; with multitenancy disabled, total disk space quota for the installation",
55: ),
56: "CustomTabTitle" => new SettingsProperty(
57: "",
58: "string",
59: null,
60: "The value will be used as the tab title in the web UI",
61: ),
62: ];
63: }
64: }
65: