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