-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSettings.php
More file actions
65 lines (61 loc) · 1.96 KB
/
Copy pathSettings.php
File metadata and controls
65 lines (61 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* This code is licensed under AGPLv3 license or Afterlogic Software License
* if commercial version of the product was purchased.
* For full statements of the licenses see LICENSE-AFTERLOGIC and LICENSE-AGPL3 files.
*/
namespace Aurora\Modules\IframeAppWebclient;
use Aurora\System\SettingsProperty;
use Aurora\Modules\IframeAppWebclient\Enums;
/**
* @property bool $Disabled
* @property string $AppName
* @property int $AuthMode
* @property int $TokenMode
* @property string $Url
* @property bool $AllowGetAuthTokenByToken
*/
class Settings extends \Aurora\System\Module\Settings
{
protected function initDefaults()
{
$this->aContainer = [
"Disabled" => new SettingsProperty(
false,
"bool",
null,
"Setting to true disables the module",
),
"AppName" => new SettingsProperty(
"",
"string",
null,
"Denotes app name used in the interface for the integrated app",
),
"AuthMode" => new SettingsProperty(
Enums\AuthMode::NoAuthentication,
"spec",
Enums\AuthMode::class,
"Defines the mode of sending authentication data into the integrated app",
),
"TokenMode" => new SettingsProperty(
Enums\TokenMode::GETRequest,
"int",
Enums\TokenMode::class,
"Defines the mode of sending auth token into the integrated app",
),
"Url" => new SettingsProperty(
"",
"string",
null,
"URL of the integrated app",
),
"AllowGetAuthTokenByToken" => new SettingsProperty(
false,
"bool",
null,
"Setting to true allows getting auth token by token",
),
];
}
}