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\MailZipWebclientPlugin;
9:
10: use Aurora\System\SettingsProperty;
11:
12: /**
13: * @property bool $Disabled
14: * @property int $ExpandZipFilesLimit
15: * @property bool $IncludeInMobile
16: * @property array $AvailableFor
17: */
18:
19: class Settings extends \Aurora\System\Module\Settings
20: {
21: protected function initDefaults()
22: {
23: $this->aContainer = [
24: "Disabled" => new SettingsProperty(
25: false,
26: "bool",
27: null,
28: "Setting to true disables the module",
29: ),
30: "ExpandZipFilesLimit" => new SettingsProperty(
31: 500,
32: "int",
33: null,
34: "Sets a limit for number of files shown when expanding ZIP archive",
35: ),
36: "IncludeInMobile" => new SettingsProperty(
37: true,
38: "bool",
39: null,
40: "If true, the module is used in mobile version of the interface",
41: ),
42: "AvailableFor" => new SettingsProperty(
43: [
44: "MailWebclient"
45: ],
46: "array",
47: null,
48: "Automatically provide this feature if one of the listed modules is requested by the entry point",
49: ),
50: ];
51: }
52: }
53: