1 | <?php |
||
20 | class preview implements EventSubscriberInterface |
||
21 | { |
||
22 | /** @var config */ |
||
23 | protected $config; |
||
24 | |||
25 | /** @var helper */ |
||
26 | protected $helper; |
||
27 | |||
28 | /** @var template */ |
||
29 | protected $template; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public static function getSubscribedEvents() |
||
49 | |||
50 | /** |
||
51 | * Constructor |
||
52 | * |
||
53 | * @param config $config |
||
54 | * @param helper $helper |
||
55 | */ |
||
56 | public function __construct(config $config, helper $helper, template $template) |
||
62 | |||
63 | /** |
||
64 | * Set some template variables for T.I.P. |
||
65 | */ |
||
66 | public function init_tpl_vars() |
||
73 | |||
74 | /** |
||
75 | * Update viewforum row |
||
76 | * |
||
77 | * @param \phpbb\event\data $event The event object |
||
78 | */ |
||
79 | public function viewforum_row($event) |
||
83 | |||
84 | /** |
||
85 | * Update viewforum template |
||
86 | * |
||
87 | * @param \phpbb\event\data $event The event object |
||
88 | */ |
||
89 | public function viewforum_tpl($event) |
||
93 | |||
94 | /** |
||
95 | * Update search results topics row |
||
96 | * |
||
97 | * @param \phpbb\event\data $event The event object |
||
98 | */ |
||
99 | public function searchresults_row($event) |
||
106 | |||
107 | /** |
||
108 | * Update search results topics template |
||
109 | * |
||
110 | * @param \phpbb\event\data $event The event object |
||
111 | */ |
||
112 | public function searchresults_tpl($event) |
||
119 | |||
120 | /** |
||
121 | * Update similar topics row |
||
122 | * |
||
123 | * @param \phpbb\event\data $event The event object |
||
124 | */ |
||
125 | public function similartopics_row($event) |
||
132 | |||
133 | /** |
||
134 | * Update similar topics template |
||
135 | * |
||
136 | * @param \phpbb\event\data $event The event object |
||
137 | */ |
||
138 | public function similartopics_tpl($event) |
||
145 | } |
||
146 |