| 1: | <?php |
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | namespace Aurora\Modules\MailScheduledMessages; |
| 9: | |
| 10: | use Aurora\System\SettingsProperty; |
| 11: | |
| 12: | |
| 13: | |
| 14: | |
| 15: | |
| 16: | |
| 17: | class Settings extends \Aurora\System\Module\Settings |
| 18: | { |
| 19: | protected function initDefaults() |
| 20: | { |
| 21: | $this->aContainer = [ |
| 22: | "Disabled" => new SettingsProperty( |
| 23: | false, |
| 24: | "bool", |
| 25: | null, |
| 26: | "If true, the module is used in mobile version of the interface", |
| 27: | ), |
| 28: | "PredefinedSchedule" => new SettingsProperty( |
| 29: | [ |
| 30: | [ |
| 31: | "DayOfWeek" => "today", |
| 32: | "Hour" => "18" |
| 33: | ], |
| 34: | [ |
| 35: | "DayOfWeek" => "tomorrow", |
| 36: | "Hour" => "8" |
| 37: | ], |
| 38: | [ |
| 39: | "DayOfWeek" => "monday", |
| 40: | "Hour" => "8" |
| 41: | ] |
| 42: | ], |
| 43: | "array", |
| 44: | null, |
| 45: | "Defines a list of presets used when scheduling a message for sending out", |
| 46: | ), |
| 47: | ]; |
| 48: | } |
| 49: | } |
| 50: | |