Expose $wgMaxArticleSize in siteinfo query api
[mediawiki.git] / includes / DummyLinker.php
blobd9330eebc23dfab43cf7577aee3fc51caa4d7a90
1 <?php
3 /**
4 * @since 1.18
5 */
6 class DummyLinker {
8 /**
9 * @deprecated since 1.27
11 public function getInterwikiLinkAttributes( $title, $unused = null, $class = 'external' ) {
12 wfDeprecated( __METHOD__, '1.27' );
13 return Linker::getInterwikiLinkAttributes(
14 $title,
15 $unused,
16 $class
20 /**
21 * @deprecated since 1.27
23 public function getInternalLinkAttributes( $title, $unused = null, $class = '' ) {
24 wfDeprecated( __METHOD__, '1.27' );
25 return Linker::getInternalLinkAttributes(
26 $title,
27 $unused,
28 $class
32 /**
33 * @deprecated since 1.27
35 public function getInternalLinkAttributesObj(
36 $nt,
37 $unused = null,
38 $class = '',
39 $title = false
40 ) {
41 wfDeprecated( __METHOD__, '1.27' );
42 return Linker::getInternalLinkAttributesObj(
43 $nt,
44 $unused,
45 $class,
46 $title
50 public function getLinkColour( $t, $threshold ) {
51 return Linker::getLinkColour( $t, $threshold );
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
70 public function linkKnown(
71 $target,
72 $html = null,
73 $customAttribs = [],
74 $query = [],
75 $options = [ 'known' ]
76 ) {
77 return Linker::linkKnown(
78 $target,
79 $html,
80 $customAttribs,
81 $query,
82 $options
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
102 public function getInvalidTitleDescription(
103 IContextSource $context,
104 $namespace,
105 $title
107 return Linker::getInvalidTitleDescription(
108 $context,
109 $namespace,
110 $title
114 public function normaliseSpecialPage( Title $title ) {
115 return Linker::normaliseSpecialPage( $title );
118 public function makeExternalImage( $url, $alt = '' ) {
119 return Linker::makeExternalImage( $url, $alt );
122 public function makeImageLink(
123 Parser $parser,
124 Title $title,
125 $file,
126 $frameParams = [],
127 $handlerParams = [],
128 $time = false,
129 $query = "",
130 $widthOption = null
132 return Linker::makeImageLink(
133 $parser,
134 $title,
135 $file,
136 $frameParams,
137 $handlerParams,
138 $time,
139 $query,
140 $widthOption
144 public function makeThumbLinkObj(
145 Title $title,
146 $file,
147 $label = '',
148 $alt,
149 $align = 'right',
150 $params = [],
151 $framed = false,
152 $manualthumb = ""
154 return Linker::makeThumbLinkObj(
155 $title,
156 $file,
157 $label,
158 $alt,
159 $align,
160 $params,
161 $framed,
162 $manualthumb
166 public function makeThumbLink2(
167 Title $title,
168 $file,
169 $frameParams = [],
170 $handlerParams = [],
171 $time = false,
172 $query = ""
174 return Linker::makeThumbLink2(
175 $title,
176 $file,
177 $frameParams,
178 $handlerParams,
179 $time,
180 $query
184 public function processResponsiveImages( $file, $thumb, $hp ) {
185 Linker::processResponsiveImages(
186 $file,
187 $thumb,
192 public function makeBrokenImageLinkObj(
193 $title,
194 $label = '',
195 $query = '',
196 $unused1 = '',
197 $unused2 = '',
198 $time = false
200 return Linker::makeBrokenImageLinkObj(
201 $title,
202 $label,
203 $query,
204 $unused1,
205 $unused2,
206 $time
210 public function makeMediaLinkObj( $title, $html = '', $time = false ) {
211 return Linker::makeMediaLinkObj(
212 $title,
213 $html,
214 $time
218 public function makeMediaLinkFile( Title $title, $file, $html = '' ) {
219 return Linker::makeMediaLinkFile(
220 $title,
221 $file,
222 $html
226 public function specialLink( $name, $key = '' ) {
227 return Linker::specialLink( $name, $key );
230 public function makeExternalLink(
231 $url,
232 $text,
233 $escape = true,
234 $linktype = '',
235 $attribs = [],
236 $title = null
238 return Linker::makeExternalLink(
239 $url,
240 $text,
241 $escape,
242 $linktype,
243 $attribs,
244 $title
248 public function userLink( $userId, $userName, $altUserName = false ) {
249 return Linker::userLink(
250 $userId,
251 $userName,
252 $altUserName
256 public function userToolLinks(
257 $userId,
258 $userText,
259 $redContribsWhenNoEdits = false,
260 $flags = 0,
261 $edits = null
263 return Linker::userToolLinks(
264 $userId,
265 $userText,
266 $redContribsWhenNoEdits,
267 $flags,
268 $edits
272 public function userToolLinksRedContribs( $userId, $userText, $edits = null ) {
273 return Linker::userToolLinksRedContribs(
274 $userId,
275 $userText,
276 $edits
280 public function userTalkLink( $userId, $userText ) {
281 return Linker::userTalkLink( $userId, $userText );
284 public function blockLink( $userId, $userText ) {
285 return Linker::blockLink( $userId, $userText );
288 public function emailLink( $userId, $userText ) {
289 return Linker::emailLink( $userId, $userText );
292 public function revUserLink( $rev, $isPublic = false ) {
293 return Linker::revUserLink( $rev, $isPublic );
296 public function revUserTools( $rev, $isPublic = false ) {
297 return Linker::revUserTools( $rev, $isPublic );
300 public function formatComment(
301 $comment,
302 $title = null,
303 $local = false,
304 $wikiId = null
306 return Linker::formatComment(
307 $comment,
308 $title,
309 $local,
310 $wikiId
314 public function formatLinksInComment(
315 $comment,
316 $title = null,
317 $local = false,
318 $wikiId = null
320 return Linker::formatLinksInComment(
321 $comment,
322 $title,
323 $local,
324 $wikiId
328 public function makeCommentLink(
329 Title $title,
330 $text,
331 $wikiId = null,
332 $options = []
334 return Linker::makeCommentLink(
335 $title,
336 $text,
337 $wikiId,
338 $options
342 public function normalizeSubpageLink( $contextTitle, $target, &$text ) {
343 return Linker::normalizeSubpageLink(
344 $contextTitle,
345 $target,
346 $text
350 public function commentBlock(
351 $comment,
352 $title = null,
353 $local = false,
354 $wikiId = null
356 return Linker::commentBlock(
357 $comment,
358 $title,
359 $local,
360 $wikiId
364 public function revComment( Revision $rev, $local = false, $isPublic = false ) {
365 return Linker::revComment( $rev, $local, $isPublic );
368 public function formatRevisionSize( $size ) {
369 return Linker::formatRevisionSize( $size );
372 public function tocIndent() {
373 return Linker::tocIndent();
376 public function tocUnindent( $level ) {
377 return Linker::tocUnindent( $level );
380 public function tocLine( $anchor, $tocline, $tocnumber, $level, $sectionIndex = false ) {
381 return Linker::tocLine(
382 $anchor,
383 $tocline,
384 $tocnumber,
385 $level,
386 $sectionIndex
390 public function tocLineEnd() {
391 return Linker::tocLineEnd();
394 public function tocList( $toc, $lang = false ) {
395 return Linker::tocList( $toc, $lang );
398 public function generateTOC( $tree, $lang = false ) {
399 return Linker::generateTOC( $tree, $lang );
402 public function makeHeadline(
403 $level,
404 $attribs,
405 $anchor,
406 $html,
407 $link,
408 $legacyAnchor = false
410 return Linker::makeHeadline(
411 $level,
412 $attribs,
413 $anchor,
414 $html,
415 $link,
416 $legacyAnchor
420 public function splitTrail( $trail ) {
421 return Linker::splitTrail( $trail );
424 public function generateRollback(
425 $rev,
426 IContextSource $context = null,
427 $options = [ 'verify' ]
429 return Linker::generateRollback(
430 $rev,
431 $context,
432 $options
436 public function getRollbackEditCount( $rev, $verify ) {
437 return Linker::getRollbackEditCount( $rev, $verify );
440 public function buildRollbackLink(
441 $rev,
442 IContextSource $context = null,
443 $editCount = false
445 return Linker::buildRollbackLink(
446 $rev,
447 $context,
448 $editCount
452 public function formatTemplates(
453 $templates,
454 $preview = false,
455 $section = false,
456 $more = null
458 return Linker::formatTemplates(
459 $templates,
460 $preview,
461 $section,
462 $more
466 public function formatHiddenCategories( $hiddencats ) {
467 return Linker::formatHiddenCategories( $hiddencats );
470 public function formatSize( $size ) {
471 return Linker::formatSize( $size );
474 public function titleAttrib( $name, $options = null, array $msgParams = [] ) {
475 return Linker::titleAttrib(
476 $name,
477 $options,
478 $msgParams
482 public function accesskey( $name ) {
483 return Linker::accesskey( $name );
486 public function getRevDeleteLink( User $user, Revision $rev, Title $title ) {
487 return Linker::getRevDeleteLink(
488 $user,
489 $rev,
490 $title
494 public function revDeleteLink( $query = [], $restricted = false, $delete = true ) {
495 return Linker::revDeleteLink(
496 $query,
497 $restricted,
498 $delete
502 public function revDeleteLinkDisabled( $delete = true ) {
503 return Linker::revDeleteLinkDisabled( $delete );
506 public function tooltipAndAccesskeyAttribs( $name, array $msgParams = [] ) {
507 return Linker::tooltipAndAccesskeyAttribs(
508 $name,
509 $msgParams
513 public function tooltip( $name, $options = null ) {
514 return Linker::tooltip( $name, $options );