1 | <?php |
||
21 | class ext extends \phpbb\extension\base |
||
22 | { |
||
23 | /** |
||
24 | * Check whether or not the extension can be enabled. |
||
25 | * The current phpBB version should meet or exceed |
||
26 | * the minimum version required by this extension: |
||
27 | * |
||
28 | * Requires phpBB 3.2.0 due to the revised notifications system |
||
29 | * and new group helper. |
||
30 | * |
||
31 | * @return bool |
||
32 | * @access public |
||
33 | */ |
||
34 | public function is_enableable() |
||
38 | |||
39 | /** |
||
40 | * Overwrite enable_step to enable Auto Groups notifications |
||
41 | * before any included migrations are installed. |
||
42 | * |
||
43 | * @param mixed $old_state State returned by previous call of this method |
||
44 | * @return mixed Returns false after last step, otherwise temporary state |
||
45 | * @access public |
||
46 | */ |
||
47 | public function enable_step($old_state) |
||
69 | |||
70 | /** |
||
71 | * Overwrite disable_step to disable Auto Groups notifications |
||
72 | * before the extension is disabled. |
||
73 | * |
||
74 | * @param mixed $old_state State returned by previous call of this method |
||
75 | * @return mixed Returns false after last step, otherwise temporary state |
||
76 | * @access public |
||
77 | */ |
||
78 | public function disable_step($old_state) |
||
100 | |||
101 | /** |
||
102 | * Overwrite purge_step to purge Auto Groups notifications before |
||
103 | * any included and installed migrations are reverted. |
||
104 | * |
||
105 | * @param mixed $old_state State returned by previous call of this method |
||
106 | * @return mixed Returns false after last step, otherwise temporary state |
||
107 | * @access public |
||
108 | */ |
||
109 | public function purge_step($old_state) |
||
131 | |||
132 | /** |
||
133 | * Notification handler to call notification enable/disable/purge steps |
||
134 | * |
||
135 | * @param string $step The step (enable, disable, purge) |
||
136 | * @param array $notification_types The notification type names |
||
137 | * @return string Return notifications as temporary state |
||
138 | * @access protected |
||
139 | */ |
||
140 | protected function notification_handler($step, $notification_types) |
||
151 | } |
||
152 |
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.