ParamValidator: Flag as unstable for 1.34
[lhc/web/wiklou.git] / includes / DummyLinker.php
1 <?php
2
3 /**
4 * @since 1.18
5 */
6 class DummyLinker {
7
8 public function link(
9 $target,
10 $html = null,
11 $customAttribs = [],
12 $query = [],
13 $options = []
14 ) {
15 return Linker::link(
16 $target,
17 $html,
18 $customAttribs,
19 $query,
20 $options
21 );
22 }
23
24 public function linkKnown(
25 $target,
26 $html = null,
27 $customAttribs = [],
28 $query = [],
29 $options = [ 'known' ]
30 ) {
31 return Linker::linkKnown(
32 $target,
33 $html,
34 $customAttribs,
35 $query,
36 $options
37 );
38 }
39
40 public function makeSelfLinkObj(
41 $nt,
42 $html = '',
43 $query = '',
44 $trail = '',
45 $prefix = ''
46 ) {
47 return Linker::makeSelfLinkObj(
48 $nt,
49 $html,
50 $query,
51 $trail,
52 $prefix
53 );
54 }
55
56 public function getInvalidTitleDescription(
57 IContextSource $context,
58 $namespace,
59 $title
60 ) {
61 return Linker::getInvalidTitleDescription(
62 $context,
63 $namespace,
64 $title
65 );
66 }
67
68 public function normaliseSpecialPage( Title $title ) {
69 return Linker::normaliseSpecialPage( $title );
70 }
71
72 public function makeExternalImage( $url, $alt = '' ) {
73 return Linker::makeExternalImage( $url, $alt );
74 }
75
76 public function makeImageLink(
77 Parser $parser,
78 Title $title,
79 $file,
80 $frameParams = [],
81 $handlerParams = [],
82 $time = false,
83 $query = "",
84 $widthOption = null
85 ) {
86 return Linker::makeImageLink(
87 $parser,
88 $title,
89 $file,
90 $frameParams,
91 $handlerParams,
92 $time,
93 $query,
94 $widthOption
95 );
96 }
97
98 public function makeThumbLinkObj(
99 Title $title,
100 $file,
101 $label = '',
102 $alt = '',
103 $align = 'right',
104 $params = [],
105 $framed = false,
106 $manualthumb = ""
107 ) {
108 return Linker::makeThumbLinkObj(
109 $title,
110 $file,
111 $label,
112 $alt,
113 $align,
114 $params,
115 $framed,
116 $manualthumb
117 );
118 }
119
120 public function makeThumbLink2(
121 Title $title,
122 $file,
123 $frameParams = [],
124 $handlerParams = [],
125 $time = false,
126 $query = ""
127 ) {
128 return Linker::makeThumbLink2(
129 $title,
130 $file,
131 $frameParams,
132 $handlerParams,
133 $time,
134 $query
135 );
136 }
137
138 public function processResponsiveImages( $file, $thumb, $hp ) {
139 Linker::processResponsiveImages(
140 $file,
141 $thumb,
142 $hp
143 );
144 }
145
146 public function makeBrokenImageLinkObj(
147 $title,
148 $label = '',
149 $query = '',
150 $unused1 = '',
151 $unused2 = '',
152 $time = false
153 ) {
154 return Linker::makeBrokenImageLinkObj(
155 $title,
156 $label,
157 $query,
158 $unused1,
159 $unused2,
160 $time
161 );
162 }
163
164 public function makeMediaLinkObj( $title, $html = '', $time = false ) {
165 return Linker::makeMediaLinkObj(
166 $title,
167 $html,
168 $time
169 );
170 }
171
172 public function makeMediaLinkFile( Title $title, $file, $html = '' ) {
173 return Linker::makeMediaLinkFile(
174 $title,
175 $file,
176 $html
177 );
178 }
179
180 public function specialLink( $name, $key = '' ) {
181 return Linker::specialLink( $name, $key );
182 }
183
184 public function makeExternalLink(
185 $url,
186 $text,
187 $escape = true,
188 $linktype = '',
189 $attribs = [],
190 $title = null
191 ) {
192 return Linker::makeExternalLink(
193 $url,
194 $text,
195 $escape,
196 $linktype,
197 $attribs,
198 $title
199 );
200 }
201
202 public function userLink( $userId, $userName, $altUserName = false ) {
203 return Linker::userLink(
204 $userId,
205 $userName,
206 $altUserName
207 );
208 }
209
210 public function userToolLinks(
211 $userId,
212 $userText,
213 $redContribsWhenNoEdits = false,
214 $flags = 0,
215 $edits = null
216 ) {
217 return Linker::userToolLinks(
218 $userId,
219 $userText,
220 $redContribsWhenNoEdits,
221 $flags,
222 $edits
223 );
224 }
225
226 public function userToolLinksRedContribs( $userId, $userText, $edits = null ) {
227 return Linker::userToolLinksRedContribs(
228 $userId,
229 $userText,
230 $edits
231 );
232 }
233
234 public function userTalkLink( $userId, $userText ) {
235 return Linker::userTalkLink( $userId, $userText );
236 }
237
238 public function blockLink( $userId, $userText ) {
239 return Linker::blockLink( $userId, $userText );
240 }
241
242 public function emailLink( $userId, $userText ) {
243 return Linker::emailLink( $userId, $userText );
244 }
245
246 public function revUserLink( $rev, $isPublic = false ) {
247 return Linker::revUserLink( $rev, $isPublic );
248 }
249
250 public function revUserTools( $rev, $isPublic = false ) {
251 return Linker::revUserTools( $rev, $isPublic );
252 }
253
254 public function formatComment(
255 $comment,
256 $title = null,
257 $local = false,
258 $wikiId = null
259 ) {
260 return Linker::formatComment(
261 $comment,
262 $title,
263 $local,
264 $wikiId
265 );
266 }
267
268 public function formatLinksInComment(
269 $comment,
270 $title = null,
271 $local = false,
272 $wikiId = null
273 ) {
274 return Linker::formatLinksInComment(
275 $comment,
276 $title,
277 $local,
278 $wikiId
279 );
280 }
281
282 public function makeCommentLink(
283 Title $title,
284 $text,
285 $wikiId = null,
286 $options = []
287 ) {
288 return Linker::makeCommentLink(
289 $title,
290 $text,
291 $wikiId,
292 $options
293 );
294 }
295
296 public function normalizeSubpageLink( $contextTitle, $target, &$text ) {
297 return Linker::normalizeSubpageLink(
298 $contextTitle,
299 $target,
300 $text
301 );
302 }
303
304 public function commentBlock(
305 $comment,
306 $title = null,
307 $local = false,
308 $wikiId = null
309 ) {
310 return Linker::commentBlock(
311 $comment,
312 $title,
313 $local,
314 $wikiId
315 );
316 }
317
318 public function revComment( Revision $rev, $local = false, $isPublic = false ) {
319 return Linker::revComment( $rev, $local, $isPublic );
320 }
321
322 public function formatRevisionSize( $size ) {
323 return Linker::formatRevisionSize( $size );
324 }
325
326 public function tocIndent() {
327 return Linker::tocIndent();
328 }
329
330 public function tocUnindent( $level ) {
331 return Linker::tocUnindent( $level );
332 }
333
334 public function tocLine( $anchor, $tocline, $tocnumber, $level, $sectionIndex = false ) {
335 return Linker::tocLine(
336 $anchor,
337 $tocline,
338 $tocnumber,
339 $level,
340 $sectionIndex
341 );
342 }
343
344 public function tocLineEnd() {
345 return Linker::tocLineEnd();
346 }
347
348 public function tocList( $toc, Language $lang = null ) {
349 return Linker::tocList( $toc, $lang );
350 }
351
352 public function generateTOC( $tree, Language $lang = null ) {
353 return Linker::generateTOC( $tree, $lang );
354 }
355
356 public function makeHeadline(
357 $level,
358 $attribs,
359 $anchor,
360 $html,
361 $link,
362 $legacyAnchor = false
363 ) {
364 return Linker::makeHeadline(
365 $level,
366 $attribs,
367 $anchor,
368 $html,
369 $link,
370 $legacyAnchor
371 );
372 }
373
374 public function splitTrail( $trail ) {
375 return Linker::splitTrail( $trail );
376 }
377
378 public function generateRollback(
379 $rev,
380 IContextSource $context = null,
381 $options = [ 'verify' ]
382 ) {
383 return Linker::generateRollback(
384 $rev,
385 $context,
386 $options
387 );
388 }
389
390 public function getRollbackEditCount( $rev, $verify ) {
391 return Linker::getRollbackEditCount( $rev, $verify );
392 }
393
394 public function buildRollbackLink(
395 $rev,
396 IContextSource $context = null,
397 $editCount = false
398 ) {
399 return Linker::buildRollbackLink(
400 $rev,
401 $context,
402 $editCount
403 );
404 }
405
406 public function formatHiddenCategories( $hiddencats ) {
407 return Linker::formatHiddenCategories( $hiddencats );
408 }
409
410 public function titleAttrib( $name, $options = null, array $msgParams = [] ) {
411 return Linker::titleAttrib(
412 $name,
413 $options,
414 $msgParams
415 );
416 }
417
418 public function accesskey( $name ) {
419 return Linker::accesskey( $name );
420 }
421
422 public function getRevDeleteLink( User $user, Revision $rev, Title $title ) {
423 return Linker::getRevDeleteLink(
424 $user,
425 $rev,
426 $title
427 );
428 }
429
430 public function revDeleteLink( $query = [], $restricted = false, $delete = true ) {
431 return Linker::revDeleteLink(
432 $query,
433 $restricted,
434 $delete
435 );
436 }
437
438 public function revDeleteLinkDisabled( $delete = true ) {
439 return Linker::revDeleteLinkDisabled( $delete );
440 }
441
442 public function tooltipAndAccesskeyAttribs( $name, array $msgParams = [] ) {
443 return Linker::tooltipAndAccesskeyAttribs(
444 $name,
445 $msgParams
446 );
447 }
448
449 public function tooltip( $name, $options = null ) {
450 return Linker::tooltip( $name, $options );
451 }
452
453 }