1 | <?php |
||
21 | class ext extends \phpbb\extension\base |
||
22 | { |
||
23 | /** |
||
24 | * Overwrite enable_step to enable Auto Groups notifications |
||
25 | * before any included migrations are installed. |
||
26 | * |
||
27 | * @param mixed $old_state State returned by previous call of this method |
||
28 | * @return mixed Returns false after last step, otherwise temporary state |
||
29 | * @access public |
||
30 | */ |
||
31 | public function enable_step($old_state) |
||
53 | |||
54 | /** |
||
55 | * Overwrite disable_step to disable Auto Groups notifications |
||
56 | * before the extension is disabled. |
||
57 | * |
||
58 | * @param mixed $old_state State returned by previous call of this method |
||
59 | * @return mixed Returns false after last step, otherwise temporary state |
||
60 | * @access public |
||
61 | */ |
||
62 | public function disable_step($old_state) |
||
84 | |||
85 | /** |
||
86 | * Overwrite purge_step to purge Auto Groups notifications before |
||
87 | * any included and installed migrations are reverted. |
||
88 | * |
||
89 | * @param mixed $old_state State returned by previous call of this method |
||
90 | * @return mixed Returns false after last step, otherwise temporary state |
||
91 | * @access public |
||
92 | */ |
||
93 | public function purge_step($old_state) |
||
115 | |||
116 | /** |
||
117 | * Notification handler to call notification enable/disable/purge steps |
||
118 | * |
||
119 | * @param string $step The step (enable, disable, purge) |
||
120 | * @param array $notification_types The notification type names |
||
121 | * @return string Return notifications as temporary state |
||
122 | * @access protected |
||
123 | */ |
||
124 | protected function notification_handler($step, $notification_types) |
||
135 | } |
||
136 |
According to the PSR-2, the body of a case statement must start on the line immediately following the case statement.
}
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.