1 | <?php |
||
20 | class preview implements EventSubscriberInterface |
||
21 | { |
||
22 | /** @var config */ |
||
23 | protected $config; |
||
24 | |||
25 | /** @var factory */ |
||
26 | private $factory; |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public static function getSubscribedEvents() |
||
45 | |||
46 | /** |
||
47 | * Constructor |
||
48 | * |
||
49 | * @param config $config |
||
50 | * @param factory $factory |
||
51 | */ |
||
52 | public function __construct(config $config, factory $factory) |
||
57 | |||
58 | /** |
||
59 | * Update viewforum row |
||
60 | * |
||
61 | * @param \phpbb\event\data $event The event object |
||
62 | */ |
||
63 | public function viewforum_row($event) |
||
67 | |||
68 | /** |
||
69 | * Update viewforum template |
||
70 | * |
||
71 | * @param \phpbb\event\data $event The event object |
||
72 | */ |
||
73 | public function viewforum_tpl($event) |
||
77 | |||
78 | /** |
||
79 | * Update search results topics row |
||
80 | * |
||
81 | * @param \phpbb\event\data $event The event object |
||
82 | */ |
||
83 | public function searchresults_row($event) |
||
90 | |||
91 | /** |
||
92 | * Update search results topics template |
||
93 | * |
||
94 | * @param \phpbb\event\data $event The event object |
||
95 | */ |
||
96 | public function searchresults_tpl($event) |
||
103 | |||
104 | /** |
||
105 | * Update similar topics row |
||
106 | * |
||
107 | * @param \phpbb\event\data $event The event object |
||
108 | */ |
||
109 | public function similartopics_row($event) |
||
116 | |||
117 | /** |
||
118 | * Update similar topics template |
||
119 | * |
||
120 | * @param \phpbb\event\data $event The event object |
||
121 | */ |
||
122 | public function similartopics_tpl($event) |
||
129 | } |
||
130 |