1: | <?php |
2: | |
3: | |
4: | |
5: | |
6: | |
7: | |
8: | namespace Aurora\Modules\CoreParanoidEncryptionWebclientPlugin; |
9: | |
10: | use Aurora\System\SettingsProperty; |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | |
19: | |
20: | |
21: | |
22: | class Settings extends \Aurora\System\Module\Settings |
23: | { |
24: | protected function initDefaults() |
25: | { |
26: | $this->aContainer = [ |
27: | "Disabled" => new SettingsProperty( |
28: | false, |
29: | "bool", |
30: | null, |
31: | "Setting to true disables the module", |
32: | ), |
33: | "AvailableFor" => new SettingsProperty( |
34: | [ |
35: | "FilesWebclient" |
36: | ], |
37: | "array", |
38: | null, |
39: | "Automatically provide this feature if one of the listed modules is requested by the entry point", |
40: | ), |
41: | "EnabledByDefault" => new SettingsProperty( |
42: | false, |
43: | "bool", |
44: | null, |
45: | "If true, the feature is enabled for new users", |
46: | ), |
47: | "EnableInPersonalStorageByDefault" => new SettingsProperty( |
48: | false, |
49: | "bool", |
50: | null, |
51: | "If true, the feature is enabled for new users in personal storage by default", |
52: | ), |
53: | "ChunkSizeMb" => new SettingsProperty( |
54: | 5, |
55: | "int", |
56: | null, |
57: | "Sets a chunk size used for encrypting files, in Mbytes", |
58: | ), |
59: | "AllowMultiChunkUpload" => new SettingsProperty( |
60: | true, |
61: | "bool", |
62: | null, |
63: | "Defines whether the files can be uploaded in chunks or in full", |
64: | ), |
65: | "AllowChangeSettings" => new SettingsProperty( |
66: | true, |
67: | "bool", |
68: | null, |
69: | "", |
70: | ), |
71: | ]; |
72: | } |
73: | } |
74: | |