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\CoreMobileWebclient;
9:
10: use Aurora\System\SettingsProperty;
11:
12: /**
13: * @property bool $Disabled
14: * @property string $Theme
15: * @property array $ThemeList
16: * @property bool $IncludeInMobile
17: * @property bool $IncludeInDesktop
18: * @property array $RequireInMobile
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: "Theme" => new SettingsProperty(
33: "Default",
34: "string",
35: null,
36: "Default theme used by mobile version",
37: ),
38: "ThemeList" => new SettingsProperty(
39: [
40: "Default"
41: ],
42: "array",
43: null,
44: "List of themes available in mobile version",
45: ),
46: "IncludeInMobile" => new SettingsProperty(
47: true,
48: "bool",
49: null,
50: "If true, the module is used in mobile version of the interface",
51: ),
52: "IncludeInDesktop" => new SettingsProperty(
53: false,
54: "bool",
55: null,
56: "If true, the module is used in desktop version of the interface",
57: ),
58: "RequireInMobile" => new SettingsProperty(
59: [
60: "CoreWebclient"
61: ],
62: "array",
63: null,
64: "List of other modules required by this module",
65: ),
66: ];
67: }
68: }
69: