1 | <?php |
||
14 | trait languages { |
||
15 | protected static $languages_options_keys = [ |
||
16 | 'language', |
||
17 | 'active_languages', |
||
18 | 'multilingual' |
||
19 | ]; |
||
20 | /** |
||
21 | * Get languages settings |
||
22 | */ |
||
23 | public static function admin_languages_get_settings () { |
||
30 | /** |
||
31 | * @return string[] |
||
32 | */ |
||
33 | protected static function get_languages_array () { |
||
43 | /** |
||
44 | * Apply language settings |
||
45 | * |
||
46 | * @param \cs\Request $Request |
||
47 | * |
||
48 | * @throws \cs\ExitException |
||
49 | */ |
||
50 | public static function admin_languages_apply_settings ($Request) { |
||
53 | /** |
||
54 | * Save language settings |
||
55 | * |
||
56 | * @param \cs\Request $Request |
||
57 | * |
||
58 | * @throws \cs\ExitException |
||
59 | */ |
||
60 | public static function admin_languages_save_settings ($Request) { |
||
63 | /** |
||
64 | * Cancel language settings |
||
65 | * |
||
66 | * @throws \cs\ExitException |
||
67 | */ |
||
68 | public static function admin_languages_cancel_settings () { |
||
71 | } |
||
72 |
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.