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\AdminPanelWebclient;
9:
10: use Aurora\System\SettingsProperty;
11:
12: /**
13: * @property bool $Disabled
14: * @property int $EntitiesPerPage
15: * @property array $TabsOrder
16: * @property array $EntitiesOrder
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: "EntitiesPerPage" => new SettingsProperty(
31: 20,
32: "int",
33: null,
34: "Number of items (users, domains etc.) shown per page in admin interface",
35: ),
36: "TabsOrder" => new SettingsProperty(
37: [
38: "licensing",
39: "admin-security",
40: "admin-db",
41: "logs-viewer",
42: "system",
43: "common",
44: "modules"
45: ],
46: "array",
47: null,
48: "Defines list of adminpanel interface sections and the order of displaying those",
49: ),
50: "EntitiesOrder" => new SettingsProperty(
51: [],
52: "array",
53: null,
54: "Defines list of top menu entries and the order of displaying those",
55: ),
56: ];
57: }
58: }
59: