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\Google;
9:
10: use Aurora\System\SettingsProperty;
11:
12: /**
13: * @property bool $Disabled
14: * @property bool $EnableModule
15: * @property string $Id
16: * @property string $Secret
17: * @property string $Key
18: */
19:
20: class Settings extends \Aurora\System\Module\Settings
21: {
22: protected function initDefaults()
23: {
24: $this->aContainer = [
25: "Disabled" => new SettingsProperty(
26: false,
27: "bool",
28: null,
29: "Setting to true disables the module",
30: ),
31: "EnableModule" => new SettingsProperty(
32: false,
33: "bool",
34: null,
35: "Setting to true allows for using and configuring the module",
36: ),
37: "Id" => new SettingsProperty(
38: "",
39: "string",
40: null,
41: "App ID obtained from Google app settings",
42: ),
43: "Secret" => new SettingsProperty(
44: "",
45: "string",
46: null,
47: "App secret obtained from Google app settings",
48: ),
49: "Key" => new SettingsProperty(
50: "",
51: "string",
52: null,
53: "API key obtained from Google app settings",
54: ),
55: ];
56: }
57: }
58: