1 | <?php |
||
16 | trait mail { |
||
17 | protected static $mail_options_keys = [ |
||
18 | 'smtp', |
||
19 | 'smtp_host', |
||
20 | 'smtp_port', |
||
21 | 'smtp_secure', |
||
22 | 'smtp_auth', |
||
23 | 'smtp_user', |
||
24 | 'smtp_password', |
||
25 | 'mail_from', |
||
26 | 'mail_from_name', |
||
27 | 'mail_signature' |
||
28 | ]; |
||
29 | /** |
||
30 | * Get mail settings |
||
31 | */ |
||
32 | public static function admin_mail_get_settings () { |
||
38 | /** |
||
39 | * Send test email to check if setup is correct |
||
40 | * |
||
41 | * @param \cs\Request $Request |
||
42 | * |
||
43 | * @throws ExitException |
||
44 | */ |
||
45 | public static function admin_mail_send_test_email ($Request) { |
||
54 | /** |
||
55 | * Apply mail settings |
||
56 | * |
||
57 | * @param \cs\Request $Request |
||
58 | * |
||
59 | * @throws ExitException |
||
60 | */ |
||
61 | public static function admin_mail_apply_settings ($Request) { |
||
64 | /** |
||
65 | * Save mail settings |
||
66 | * |
||
67 | * @param \cs\Request $Request |
||
68 | * |
||
69 | * @throws ExitException |
||
70 | */ |
||
71 | public static function admin_mail_save_settings ($Request) { |
||
74 | /** |
||
75 | * Cancel mail settings |
||
76 | * |
||
77 | * @throws ExitException |
||
78 | */ |
||
79 | public static function admin_mail_cancel_settings () { |
||
82 | } |
||
83 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.