1 | <?php |
||
25 | class listener implements EventSubscriberInterface |
||
26 | { |
||
27 | /** @var bbcodes_parser */ |
||
28 | protected $bbcodes_parser; |
||
29 | |||
30 | /** @var bbcodes_display */ |
||
31 | protected $bbcodes_display; |
||
32 | |||
33 | /** @var bbcodes_help */ |
||
34 | protected $bbcodes_help; |
||
35 | |||
36 | /** @var helper */ |
||
37 | protected $helper; |
||
38 | |||
39 | /** @var template */ |
||
40 | protected $template; |
||
41 | |||
42 | /** @var user */ |
||
43 | protected $user; |
||
44 | |||
45 | /** @var string phpBB root path */ |
||
46 | protected $ext_root_path; |
||
47 | |||
48 | /** |
||
49 | * Constructor |
||
50 | * |
||
51 | * @param bbcodes_parser $bbcodes_parser |
||
52 | * @param bbcodes_display $bbcodes_display |
||
53 | * @param \vse\abbc3\core\bbcodes_help $bbcodes_help |
||
54 | * @param helper $helper |
||
55 | 19 | * @param template $template |
|
56 | * @param user $user |
||
57 | 19 | * @param string $ext_root_path |
|
58 | 19 | * @access public |
|
59 | 19 | */ |
|
60 | 19 | public function __construct(bbcodes_parser $bbcodes_parser, bbcodes_display $bbcodes_display, bbcodes_help $bbcodes_help, helper $helper, template $template, user $user, $ext_root_path) |
|
70 | |||
71 | /** |
||
72 | 1 | * Assign functions defined in this class to event listeners in the core |
|
73 | * |
||
74 | * @return array |
||
75 | 1 | * @static |
|
76 | * @access public |
||
77 | */ |
||
78 | 1 | public static function getSubscribedEvents() |
|
98 | |||
99 | /** |
||
100 | * Load common files during user setup |
||
101 | 2 | * |
|
102 | * @param \phpbb\event\data $event The event object |
||
103 | 2 | * @access public |
|
104 | 2 | */ |
|
105 | 2 | public function load_language_on_setup($event) |
|
114 | |||
115 | /** |
||
116 | * Alter BBCodes before they are processed by phpBB |
||
117 | * |
||
118 | * This is used to change old/malformed ABBC3 BBCodes to a newer structure |
||
119 | 2 | * |
|
120 | * @param \phpbb\event\data $event The event object |
||
121 | 2 | * @access public |
|
122 | 2 | */ |
|
123 | public function parse_bbcodes_before($event) |
||
127 | |||
128 | /** |
||
129 | * Alter BBCodes after they are processed by phpBB |
||
130 | * |
||
131 | * This is used on ABBC3 BBCodes that require additional post-processing |
||
132 | 4 | * |
|
133 | * @param \phpbb\event\data $event The event object |
||
134 | 4 | * @access public |
|
135 | 4 | */ |
|
136 | public function parse_bbcodes_after($event) |
||
140 | |||
141 | /** |
||
142 | * Modify the SQL array to gather custom BBCode data |
||
143 | 2 | * |
|
144 | * @param \phpbb\event\data $event The event object |
||
145 | 2 | * @access public |
|
146 | 2 | */ |
|
147 | 2 | public function custom_bbcode_modify_sql($event) |
|
154 | |||
155 | /** |
||
156 | 1 | * Setup custom BBCode variables |
|
157 | * |
||
158 | 1 | * @access public |
|
159 | 1 | */ |
|
160 | 1 | public function setup_custom_bbcodes() |
|
173 | |||
174 | /** |
||
175 | * Alter custom BBCodes display |
||
176 | 4 | * |
|
177 | * @param \phpbb\event\data $event The event object |
||
178 | 4 | * @access public |
|
179 | 4 | */ |
|
180 | public function display_custom_bbcodes($event) |
||
184 | |||
185 | /** |
||
186 | * Allow custom BBCodes based on user's group memberships |
||
187 | 2 | * |
|
188 | * @param \phpbb\event\data $event The event object |
||
189 | 2 | * @access public |
|
190 | 2 | */ |
|
191 | 1 | public function s9e_allow_custom_bbcodes($event) |
|
200 | |||
201 | /** |
||
202 | 1 | * Configure s9e Plug Ins |
|
203 | * |
||
204 | 1 | * @param \phpbb\event\data $event The event object |
|
205 | 1 | */ |
|
206 | 1 | public function s9e_configure_plugins($event) |
|
211 | |||
212 | /** |
||
213 | * Add ABBC3 BBCodes to the BBCode FAQ after the HELP_BBCODE_BLOCK_OTHERS block |
||
214 | * |
||
215 | * @param \phpbb\event\data $event The event object |
||
216 | * @access public |
||
217 | */ |
||
218 | public function add_bbcode_faq($event) |
||
225 | } |
||
226 |