1 | <?php |
||
14 | class mcp_topic implements EventSubscriberInterface |
||
15 | { |
||
16 | /** @var \phpbb\db\driver\driver_interface */ |
||
17 | protected $db; |
||
18 | |||
19 | /* @var \blitze\content\services\types */ |
||
20 | protected $content_types; |
||
21 | |||
22 | /* @var \blitze\content\services\fields */ |
||
23 | protected $fields; |
||
24 | |||
25 | /** @var string */ |
||
26 | protected $phpbb_root_path; |
||
27 | |||
28 | /** @var string */ |
||
29 | protected $php_ext; |
||
30 | |||
31 | /** |
||
32 | * Constructor |
||
33 | * |
||
34 | * @param \phpbb\db\driver\driver_interface $db Database object |
||
35 | * @param \blitze\content\services\types $content_types Content types object |
||
36 | * @param \blitze\content\services\fields $fields Content fields object |
||
37 | * @param string $phpbb_root_path Path to the phpbb includes directory. |
||
38 | * @param string $php_ext php file extension |
||
39 | */ |
||
40 | public function __construct(\phpbb\db\driver\driver_interface $db, \blitze\content\services\types $content_types, \blitze\content\services\fields $fields, $phpbb_root_path, $php_ext) |
||
48 | |||
49 | /** |
||
50 | * @return array |
||
51 | */ |
||
52 | static public function getSubscribedEvents() |
||
63 | |||
64 | /** |
||
65 | * @param \phpbb\event\data $event |
||
66 | * @return void |
||
67 | */ |
||
68 | public function modify_post_data(\phpbb\event\data $event) |
||
74 | |||
75 | /** |
||
76 | * @param \phpbb\event\data $event |
||
77 | * @return void |
||
78 | */ |
||
79 | public function modify_review_row(\phpbb\event\data $event) |
||
93 | |||
94 | /** |
||
95 | * @param \phpbb\event\data $event |
||
96 | * @return void |
||
97 | */ |
||
98 | public function modify_forum_sql(\phpbb\event\data $event) |
||
107 | |||
108 | /** |
||
109 | * @param \phpbb\event\data $event |
||
110 | * @return void |
||
111 | */ |
||
112 | public function modify_topic_queue_sql(\phpbb\event\data $event) |
||
127 | |||
128 | /** |
||
129 | * @param \phpbb\event\data $event |
||
130 | * @return void |
||
131 | */ |
||
132 | public function modify_forumlist(\phpbb\event\data $event) |
||
136 | |||
137 | /** |
||
138 | * @param array |
||
139 | * @return array |
||
140 | */ |
||
141 | protected function get_forum_list(array $forum_list) |
||
148 | } |
||
149 |