Completed
Branch master (efd8f8)
by
unknown
29:11
created

DummyLinker::makeSelfLinkObj()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 15
rs 9.4285
cc 1
eloc 12
nc 1
nop 5
1
<?php
2
3
/**
4
 * @since 1.18
5
 */
6
class DummyLinker {
7
8
	/**
9
	 * @deprecated since 1.27
10
	 */
11
	public function getInterwikiLinkAttributes( $title, $unused = null, $class = 'external' ) {
12
		wfDeprecated( __METHOD__, '1.27' );
13
		return Linker::getInterwikiLinkAttributes(
0 ignored issues
show
Deprecated Code introduced by
The method Linker::getInterwikiLinkAttributes() has been deprecated with message: since 1.25

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
14
			$title,
15
			$unused,
16
			$class
17
		);
18
	}
19
20
	/**
21
	 * @deprecated since 1.27
22
	 */
23
	public function getInternalLinkAttributes( $title, $unused = null, $class = '' ) {
24
		wfDeprecated( __METHOD__, '1.27' );
25
		return Linker::getInternalLinkAttributes(
0 ignored issues
show
Deprecated Code introduced by
The method Linker::getInternalLinkAttributes() has been deprecated with message: since 1.25

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
26
			$title,
27
			$unused,
28
			$class
29
		);
30
	}
31
32
	/**
33
	 * @deprecated since 1.27
34
	 */
35
	public function getInternalLinkAttributesObj(
36
		$nt,
37
		$unused = null,
38
		$class = '',
39
		$title = false
40
	) {
41
		wfDeprecated( __METHOD__, '1.27' );
42
		return Linker::getInternalLinkAttributesObj(
0 ignored issues
show
Deprecated Code introduced by
The method Linker::getInternalLinkAttributesObj() has been deprecated with message: since 1.25

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
43
			$nt,
44
			$unused,
45
			$class,
46
			$title
47
		);
48
	}
49
50
	public function getLinkColour( $t, $threshold ) {
51
		return Linker::getLinkColour( $t, $threshold );
52
	}
53
54
	public function link(
55
		$target,
56
		$html = null,
57
		$customAttribs = [ ],
58
		$query = [ ],
59
		$options = [ ]
60
	) {
61
		return Linker::link(
62
			$target,
63
			$html,
64
			$customAttribs,
65
			$query,
66
			$options
67
		);
68
	}
69
70
	public function linkKnown(
71
		$target,
72
		$html = null,
73
		$customAttribs = [ ],
74
		$query = [ ],
75
		$options = [ 'known', 'noclasses' ]
76
	) {
77
		return Linker::linkKnown(
78
			$target,
79
			$html,
80
			$customAttribs,
81
			$query,
82
			$options
83
		);
84
	}
85
86
	public function makeSelfLinkObj(
87
		$nt,
88
		$html = '',
89
		$query = '',
90
		$trail = '',
91
		$prefix = ''
92
	) {
93
		return Linker::makeSelfLinkObj(
94
			$nt,
95
			$html,
96
			$query,
97
			$trail,
98
			$prefix
99
		);
100
	}
101
102
	public function getInvalidTitleDescription(
103
		IContextSource $context,
104
		$namespace,
105
		$title
106
	) {
107
		return Linker::getInvalidTitleDescription(
108
			$context,
109
			$namespace,
110
			$title
111
		);
112
	}
113
114
	public function normaliseSpecialPage( Title $title ) {
115
		return Linker::normaliseSpecialPage( $title );
116
	}
117
118
	public function makeExternalImage( $url, $alt = '' ) {
119
		return Linker::makeExternalImage( $url, $alt );
120
	}
121
122
	public function makeImageLink(
123
		Parser $parser,
124
		Title $title,
125
		$file,
126
		$frameParams = [ ],
127
		$handlerParams = [ ],
128
		$time = false,
129
		$query = "",
130
		$widthOption = null
131
	) {
132
		return Linker::makeImageLink(
133
			$parser,
134
			$title,
135
			$file,
136
			$frameParams,
137
			$handlerParams,
138
			$time,
139
			$query,
140
			$widthOption
141
		);
142
	}
143
144
	public function makeThumbLinkObj(
145
		Title $title,
146
		$file,
147
		$label = '',
148
		$alt,
149
		$align = 'right',
150
		$params = [ ],
151
		$framed = false,
152
		$manualthumb = ""
153
	) {
154
		return Linker::makeThumbLinkObj(
155
			$title,
156
			$file,
157
			$label,
158
			$alt,
159
			$align,
160
			$params,
161
			$framed,
162
			$manualthumb
163
		);
164
	}
165
166
	public function makeThumbLink2(
167
		Title $title,
168
		$file,
169
		$frameParams = [ ],
170
		$handlerParams = [ ],
171
		$time = false,
172
		$query = ""
173
	) {
174
		return Linker::makeThumbLink2(
175
			$title,
176
			$file,
177
			$frameParams,
178
			$handlerParams,
179
			$time,
180
			$query
181
		);
182
	}
183
184
	public function processResponsiveImages( $file, $thumb, $hp ) {
185
		Linker::processResponsiveImages(
186
			$file,
187
			$thumb,
188
			$hp
189
		);
190
	}
191
192
	public function makeBrokenImageLinkObj(
193
		$title,
194
		$label = '',
195
		$query = '',
196
		$unused1 = '',
197
		$unused2 = '',
198
		$time = false
199
	) {
200
		return Linker::makeBrokenImageLinkObj(
201
			$title,
202
			$label,
203
			$query,
204
			$unused1,
205
			$unused2,
206
			$time
207
		);
208
	}
209
210
	public function makeMediaLinkObj( $title, $html = '', $time = false ) {
211
		return Linker::makeMediaLinkObj(
212
			$title,
213
			$html,
214
			$time
215
		);
216
	}
217
218
	public function makeMediaLinkFile( Title $title, $file, $html = '' ) {
219
		return Linker::makeMediaLinkFile(
220
			$title,
221
			$file,
222
			$html
223
		);
224
	}
225
226
	public function specialLink( $name, $key = '' ) {
227
		return Linker::specialLink( $name, $key );
228
	}
229
230
	public function makeExternalLink(
231
		$url,
232
		$text,
233
		$escape = true,
234
		$linktype = '',
235
		$attribs = [ ],
236
		$title = null
237
	) {
238
		return Linker::makeExternalLink(
239
			$url,
240
			$text,
241
			$escape,
242
			$linktype,
243
			$attribs,
244
			$title
245
		);
246
	}
247
248
	public function userLink( $userId, $userName, $altUserName = false ) {
249
		return Linker::userLink(
250
			$userId,
251
			$userName,
252
			$altUserName
253
		);
254
	}
255
256
	public function userToolLinks(
257
		$userId,
258
		$userText,
259
		$redContribsWhenNoEdits = false,
260
		$flags = 0,
261
		$edits = null
262
	) {
263
		return Linker::userToolLinks(
264
			$userId,
265
			$userText,
266
			$redContribsWhenNoEdits,
267
			$flags,
268
			$edits
269
		);
270
	}
271
272
	public function userToolLinksRedContribs( $userId, $userText, $edits = null ) {
273
		return Linker::userToolLinksRedContribs(
274
			$userId,
275
			$userText,
276
			$edits
277
		);
278
	}
279
280
	public function userTalkLink( $userId, $userText ) {
281
		return Linker::userTalkLink( $userId, $userText );
282
	}
283
284
	public function blockLink( $userId, $userText ) {
285
		return Linker::blockLink( $userId, $userText );
286
	}
287
288
	public function emailLink( $userId, $userText ) {
289
		return Linker::emailLink( $userId, $userText );
290
	}
291
292
	public function revUserLink( $rev, $isPublic = false ) {
293
		return Linker::revUserLink( $rev, $isPublic );
294
	}
295
296
	public function revUserTools( $rev, $isPublic = false ) {
297
		return Linker::revUserTools( $rev, $isPublic );
298
	}
299
300
	public function formatComment(
301
		$comment,
302
		$title = null,
303
		$local = false,
304
		$wikiId = null
305
	) {
306
		return Linker::formatComment(
307
			$comment,
308
			$title,
309
			$local,
310
			$wikiId
311
		);
312
	}
313
314
	public function formatLinksInComment(
315
		$comment,
316
		$title = null,
317
		$local = false,
318
		$wikiId = null
319
	) {
320
		return Linker::formatLinksInComment(
321
			$comment,
322
			$title,
323
			$local,
324
			$wikiId
325
		);
326
	}
327
328
	public function makeCommentLink(
329
		Title $title,
330
		$text,
331
		$wikiId = null,
332
		$options = [ ]
333
	) {
334
		return Linker::makeCommentLink(
335
			$title,
336
			$text,
337
			$wikiId,
338
			$options
339
		);
340
	}
341
342
	public function normalizeSubpageLink( $contextTitle, $target, &$text ) {
343
		return Linker::normalizeSubpageLink(
344
			$contextTitle,
345
			$target,
346
			$text
347
		);
348
	}
349
350
	public function commentBlock(
351
		$comment,
352
		$title = null,
353
		$local = false,
354
		$wikiId = null
355
	) {
356
		return Linker::commentBlock(
357
			$comment,
358
			$title,
359
			$local,
360
			$wikiId
361
		);
362
	}
363
364
	public function revComment( Revision $rev, $local = false, $isPublic = false ) {
365
		return Linker::revComment( $rev, $local, $isPublic );
366
	}
367
368
	public function formatRevisionSize( $size ) {
369
		return Linker::formatRevisionSize( $size );
370
	}
371
372
	public function tocIndent() {
373
		return Linker::tocIndent();
374
	}
375
376
	public function tocUnindent( $level ) {
377
		return Linker::tocUnindent( $level );
378
	}
379
380
	public function tocLine( $anchor, $tocline, $tocnumber, $level, $sectionIndex = false ) {
381
		return Linker::tocLine(
382
			$anchor,
383
			$tocline,
384
			$tocnumber,
385
			$level,
386
			$sectionIndex
387
		);
388
	}
389
390
	public function tocLineEnd() {
391
		return Linker::tocLineEnd();
392
	}
393
394
	public function tocList( $toc, $lang = false ) {
395
		return Linker::tocList( $toc, $lang );
396
	}
397
398
	public function generateTOC( $tree, $lang = false ) {
399
		return Linker::generateTOC( $tree, $lang );
400
	}
401
402
	public function makeHeadline(
403
		$level,
404
		$attribs,
405
		$anchor,
406
		$html,
407
		$link,
408
		$legacyAnchor = false
409
	) {
410
		return Linker::makeHeadline(
411
			$level,
412
			$attribs,
413
			$anchor,
414
			$html,
415
			$link,
416
			$legacyAnchor
417
		);
418
	}
419
420
	public function splitTrail( $trail ) {
421
		return Linker::splitTrail( $trail );
422
	}
423
424
	public function generateRollback(
425
		$rev,
426
		IContextSource $context = null,
427
		$options = [ 'verify' ]
428
	) {
429
		return Linker::generateRollback(
430
			$rev,
431
			$context,
432
			$options
433
		);
434
	}
435
436
	public function getRollbackEditCount( $rev, $verify ) {
437
		return Linker::getRollbackEditCount( $rev, $verify );
438
	}
439
440
	public function buildRollbackLink(
441
		$rev,
442
		IContextSource $context = null,
443
		$editCount = false
444
	) {
445
		return Linker::buildRollbackLink(
446
			$rev,
447
			$context,
448
			$editCount
449
		);
450
	}
451
452
	public function formatTemplates(
453
		$templates,
454
		$preview = false,
455
		$section = false,
456
		$more = null
457
	) {
458
		return Linker::formatTemplates(
459
			$templates,
460
			$preview,
461
			$section,
462
			$more
463
		);
464
	}
465
466
	public function formatHiddenCategories( $hiddencats ) {
467
		return Linker::formatHiddenCategories( $hiddencats );
468
	}
469
470
	public function formatSize( $size ) {
471
		return Linker::formatSize( $size );
472
	}
473
474
	public function titleAttrib( $name, $options = null, array $msgParams = [ ] ) {
475
		return Linker::titleAttrib(
476
			$name,
477
			$options,
478
			$msgParams
479
		);
480
	}
481
482
	public function accesskey( $name ) {
483
		return Linker::accesskey( $name );
484
	}
485
486
	public function getRevDeleteLink( User $user, Revision $rev, Title $title ) {
487
		return Linker::getRevDeleteLink(
488
			$user,
489
			$rev,
490
			$title
491
		);
492
	}
493
494
	public function revDeleteLink( $query = [ ], $restricted = false, $delete = true ) {
495
		return Linker::revDeleteLink(
496
			$query,
497
			$restricted,
498
			$delete
499
		);
500
	}
501
502
	public function revDeleteLinkDisabled( $delete = true ) {
503
		return Linker::revDeleteLinkDisabled( $delete );
504
	}
505
506
	public function tooltipAndAccesskeyAttribs( $name, array $msgParams = [ ] ) {
507
		return Linker::tooltipAndAccesskeyAttribs(
508
			$name,
509
			$msgParams
510
		);
511
	}
512
513
	public function tooltip( $name, $options = null ) {
514
		return Linker::tooltip( $name, $options );
515
	}
516
517
}
518