| 1: | <?php |
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | namespace Aurora\Modules\CoreMobileWebclient; |
| 9: | |
| 10: | use Aurora\System\SettingsProperty; |
| 11: | |
| 12: | |
| 13: | |
| 14: | |
| 15: | |
| 16: | |
| 17: | |
| 18: | |
| 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: | |