-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSettings.php
More file actions
80 lines (76 loc) · 2.52 KB
/
Copy pathSettings.php
File metadata and controls
80 lines (76 loc) · 2.52 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
<?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\CoreParanoidEncryptionWebclientPlugin;
use Aurora\System\SettingsProperty;
/**
* @property bool $Disabled
* @property bool $AvailableFor
* @property bool $EnabledByDefault
* @property bool $EnableInPersonalStorageByDefault
* @property int $ChunkSizeMb
* @property bool $AllowMultiChunkUpload
* @property bool $AllowChangeSettings
* @property bool $AllowBackwardCompatibility
*/
class Settings extends \Aurora\System\Module\Settings
{
protected function initDefaults()
{
$this->aContainer = [
"Disabled" => new SettingsProperty(
false,
"bool",
null,
"Setting to true disables the module",
),
"AvailableFor" => new SettingsProperty(
[
"FilesWebclient"
],
"array",
null,
"Automatically provide this feature if one of the listed modules is requested by the entry point",
),
"EnabledByDefault" => new SettingsProperty(
false,
"bool",
null,
"If true, the feature is enabled for new users",
),
"EnableInPersonalStorageByDefault" => new SettingsProperty(
false,
"bool",
null,
"If true, the feature is enabled for new users in personal storage by default",
),
"ChunkSizeMb" => new SettingsProperty(
5,
"int",
null,
"Sets a chunk size used for encrypting files, in Mbytes",
),
"AllowMultiChunkUpload" => new SettingsProperty(
true,
"bool",
null,
"Defines whether the files can be uploaded in chunks or in full",
),
"AllowChangeSettings" => new SettingsProperty(
true,
"bool",
null,
"",
),
"AllowBackwardCompatibility" => new SettingsProperty(
true,
"bool",
null,
"Shows the backward compatibility option for the outdated encryption mode",
),
];
}
}