1 | <?php |
||
14 | class search implements EventSubscriberInterface |
||
15 | { |
||
16 | /** @var \phpbb\db\driver\driver_interface */ |
||
17 | protected $db; |
||
18 | |||
19 | /* @var \phpbb\controller\helper */ |
||
20 | protected $helper; |
||
21 | |||
22 | /* @var \blitze\content\services\types */ |
||
23 | protected $content_types; |
||
24 | |||
25 | /** |
||
26 | * Constructor |
||
27 | * |
||
28 | * @param \phpbb\db\driver\driver_interface $db Database object |
||
29 | * @param \phpbb\controller\helper $helper Helper object |
||
30 | * @param \blitze\content\services\types $content_types Content types object |
||
31 | */ |
||
32 | public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\controller\helper $helper, \blitze\content\services\types $content_types) |
||
38 | |||
39 | /** |
||
40 | * @return array |
||
41 | */ |
||
42 | static public function getSubscribedEvents() |
||
50 | |||
51 | /** |
||
52 | * Since this extension allows for scheduling articles, |
||
53 | * We want to make sure that we do not display future articles in search results |
||
54 | * |
||
55 | * @param \phpbb\event\data $event |
||
56 | * @return void |
||
57 | */ |
||
58 | public function modify_posts_data(\phpbb\event\data $event) |
||
74 | |||
75 | /** |
||
76 | * Since this extension allows for scheduling articles, |
||
77 | * We want to make sure that we do not display future articles in search results |
||
78 | * |
||
79 | * @param \phpbb\event\data $event |
||
80 | * @return void |
||
81 | */ |
||
82 | public function modify_topic_data(\phpbb\event\data $event) |
||
95 | |||
96 | /** |
||
97 | * @param \phpbb\event\data $event |
||
98 | * @return void |
||
99 | */ |
||
100 | public function modify_tpl_data(\phpbb\event\data $event) |
||
134 | |||
135 | /** |
||
136 | * @param array $row |
||
137 | * @param string $message |
||
138 | * @return string |
||
139 | */ |
||
140 | public function modify_message(array $row, $message) |
||
149 | } |
||
150 |