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() |
|
103 | 2 | ||
104 | 2 | /** |
|
105 | 2 | * Load common files during user setup |
|
106 | 2 | * |
|
107 | * @param \phpbb\event\data $event The event object |
||
108 | 2 | * @access public |
|
109 | 2 | */ |
|
110 | public function load_language_on_setup($event) |
||
119 | 2 | ||
120 | /** |
||
121 | 2 | * Alter BBCodes before they are processed by phpBB |
|
122 | 2 | * |
|
123 | * This is used to change old/malformed ABBC3 BBCodes to a newer structure |
||
124 | * |
||
125 | * @param \phpbb\event\data $event The event object |
||
126 | * @access public |
||
127 | */ |
||
128 | public function parse_bbcodes_before($event) |
||
132 | 4 | ||
133 | /** |
||
134 | 4 | * Alter BBCodes after they are processed by phpBB |
|
135 | 4 | * |
|
136 | * This is used on ABBC3 BBCodes that require additional post-processing |
||
137 | * |
||
138 | * @param \phpbb\event\data $event The event object |
||
139 | * @access public |
||
140 | */ |
||
141 | public function parse_bbcodes_after($event) |
||
145 | 2 | ||
146 | 2 | /** |
|
147 | 2 | * Modify the SQL array to gather custom BBCode data |
|
148 | 2 | * |
|
149 | 2 | * @param \phpbb\event\data $event The event object |
|
150 | * @access public |
||
151 | */ |
||
152 | public function custom_bbcode_modify_sql($event) |
||
159 | 1 | ||
160 | 1 | /** |
|
161 | 1 | * Setup custom BBCode variables |
|
162 | 1 | * |
|
163 | * @access public |
||
164 | 1 | */ |
|
165 | 1 | public function setup_custom_bbcodes() |
|
178 | 4 | ||
179 | 4 | /** |
|
180 | * Alter custom BBCodes display |
||
181 | * |
||
182 | * @param \phpbb\event\data $event The event object |
||
183 | * @access public |
||
184 | */ |
||
185 | public function display_custom_bbcodes($event) |
||
189 | 2 | ||
190 | 2 | /** |
|
191 | 1 | * Allow custom BBCodes based on user's group memberships |
|
192 | * |
||
193 | * @param \phpbb\event\data $event The event object |
||
194 | 1 | * @access public |
|
195 | 1 | */ |
|
196 | public function s9e_allow_custom_bbcodes($event) |
||
205 | 1 | ||
206 | 1 | /** |
|
207 | * Configure s9e Plug Ins |
||
208 | * |
||
209 | * @param \phpbb\event\data $event The event object |
||
210 | */ |
||
211 | public function s9e_configure_plugins($event) |
||
216 | |||
217 | /** |
||
218 | * Add ABBC3 BBCodes to the BBCode FAQ |
||
219 | * |
||
220 | * @param object $event The event object |
||
221 | * @access public |
||
222 | */ |
||
223 | public function add_bbcode_faq($event) |
||
231 | } |
||
232 |