MediaWiki fundraising/REL1_35
DummyLinker.php
Go to the documentation of this file.
1<?php
2
4
9
10 public function link(
11 $target,
12 $html = null,
13 $customAttribs = [],
14 $query = [],
15 $options = []
16 ) {
17 return Linker::link(
18 $target,
19 $html,
20 $customAttribs,
21 $query,
22 $options
23 );
24 }
25
26 public function linkKnown(
27 $target,
28 $html = null,
29 $customAttribs = [],
30 $query = [],
31 $options = [ 'known' ]
32 ) {
33 return Linker::linkKnown(
34 $target,
35 $html,
36 $customAttribs,
37 $query,
38 $options
39 );
40 }
41
42 public function makeSelfLinkObj(
43 $nt,
44 $html = '',
45 $query = '',
46 $trail = '',
47 $prefix = ''
48 ) {
50 $nt,
51 $html,
52 $query,
53 $trail,
54 $prefix
55 );
56 }
57
59 IContextSource $context,
60 $namespace,
61 $title
62 ) {
64 $context,
65 $namespace,
66 $title
67 );
68 }
69
70 public function normaliseSpecialPage( Title $title ) {
71 $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer();
72 return $linkRenderer->normalizeTarget( $title );
73 }
74
75 public function makeExternalImage( $url, $alt = '' ) {
76 return Linker::makeExternalImage( $url, $alt );
77 }
78
79 public function makeImageLink(
80 Parser $parser,
82 $file,
83 $frameParams = [],
84 $handlerParams = [],
85 $time = false,
86 $query = "",
87 $widthOption = null
88 ) {
90 $parser,
91 $title,
92 $file,
93 $frameParams,
94 $handlerParams,
95 $time,
96 $query,
97 $widthOption
98 );
99 }
100
101 public function makeThumbLinkObj(
103 $file,
104 $label = '',
105 $alt = '',
106 $align = 'right',
107 $params = [],
108 $framed = false,
109 $manualthumb = ""
110 ) {
112 $title,
113 $file,
114 $label,
115 $alt,
116 $align,
117 $params,
118 $framed,
119 $manualthumb
120 );
121 }
122
123 public function makeThumbLink2(
125 $file,
126 $frameParams = [],
127 $handlerParams = [],
128 $time = false,
129 $query = ""
130 ) {
132 $title,
133 $file,
134 $frameParams,
135 $handlerParams,
136 $time,
137 $query
138 );
139 }
140
141 public function processResponsiveImages( $file, $thumb, $hp ) {
143 $file,
144 $thumb,
145 $hp
146 );
147 }
148
149 public function makeBrokenImageLinkObj(
150 $title,
151 $label = '',
152 $query = '',
153 $unused1 = '',
154 $unused2 = '',
155 $time = false
156 ) {
158 $title,
159 $label,
160 $query,
161 $unused1,
162 $unused2,
163 $time
164 );
165 }
166
167 public function makeMediaLinkObj( $title, $html = '', $time = false ) {
169 $title,
170 $html,
171 $time
172 );
173 }
174
175 public function makeMediaLinkFile( Title $title, $file, $html = '' ) {
177 $title,
178 $file,
179 $html
180 );
181 }
182
183 public function specialLink( $name, $key = '' ) {
184 return Linker::specialLink( $name, $key );
185 }
186
187 public function makeExternalLink(
188 $url,
189 $text,
190 $escape = true,
191 $linktype = '',
192 $attribs = [],
193 $title = null
194 ) {
196 $url,
197 $text,
198 $escape,
199 $linktype,
200 $attribs,
201 $title
202 );
203 }
204
205 public function userLink( $userId, $userName, $altUserName = false ) {
206 return Linker::userLink(
207 $userId,
208 $userName,
209 $altUserName
210 );
211 }
212
213 public function userToolLinks(
214 $userId,
215 $userText,
216 $redContribsWhenNoEdits = false,
217 $flags = 0,
218 $edits = null
219 ) {
221 $userId,
222 $userText,
223 $redContribsWhenNoEdits,
224 $flags,
225 $edits
226 );
227 }
228
229 public function userToolLinksRedContribs( $userId, $userText, $edits = null ) {
231 $userId,
232 $userText,
233 $edits
234 );
235 }
236
237 public function userTalkLink( $userId, $userText ) {
238 return Linker::userTalkLink( $userId, $userText );
239 }
240
241 public function blockLink( $userId, $userText ) {
242 return Linker::blockLink( $userId, $userText );
243 }
244
245 public function emailLink( $userId, $userText ) {
246 return Linker::emailLink( $userId, $userText );
247 }
248
249 public function revUserLink( $rev, $isPublic = false ) {
250 return Linker::revUserLink( $rev, $isPublic );
251 }
252
253 public function revUserTools( $rev, $isPublic = false ) {
254 return Linker::revUserTools( $rev, $isPublic );
255 }
256
257 public function formatComment(
258 $comment,
259 $title = null,
260 $local = false,
261 $wikiId = null
262 ) {
264 $comment,
265 $title,
266 $local,
267 $wikiId
268 );
269 }
270
271 public function formatLinksInComment(
272 $comment,
273 $title = null,
274 $local = false,
275 $wikiId = null
276 ) {
278 $comment,
279 $title,
280 $local,
281 $wikiId
282 );
283 }
284
285 public function makeCommentLink(
287 $text,
288 $wikiId = null,
289 $options = []
290 ) {
292 $title,
293 $text,
294 $wikiId,
295 $options
296 );
297 }
298
299 public function normalizeSubpageLink( $contextTitle, $target, &$text ) {
301 $contextTitle,
302 $target,
303 $text
304 );
305 }
306
307 public function commentBlock(
308 $comment,
309 $title = null,
310 $local = false,
311 $wikiId = null
312 ) {
314 $comment,
315 $title,
316 $local,
317 $wikiId
318 );
319 }
320
321 public function revComment( $rev, $local = false, $isPublic = false ) {
322 return Linker::revComment( $rev, $local, $isPublic );
323 }
324
325 public function formatRevisionSize( $size ) {
326 return Linker::formatRevisionSize( $size );
327 }
328
329 public function tocIndent() {
330 return Linker::tocIndent();
331 }
332
333 public function tocUnindent( $level ) {
334 return Linker::tocUnindent( $level );
335 }
336
337 public function tocLine( $anchor, $tocline, $tocnumber, $level, $sectionIndex = false ) {
338 return Linker::tocLine(
339 $anchor,
340 $tocline,
341 $tocnumber,
342 $level,
343 $sectionIndex
344 );
345 }
346
347 public function tocLineEnd() {
348 return Linker::tocLineEnd();
349 }
350
351 public function tocList( $toc, Language $lang = null ) {
352 return Linker::tocList( $toc, $lang );
353 }
354
355 public function generateTOC( $tree, Language $lang = null ) {
356 return Linker::generateTOC( $tree, $lang );
357 }
358
359 public function makeHeadline(
360 $level,
361 $attribs,
362 $anchor,
363 $html,
364 $link,
365 $legacyAnchor = false
366 ) {
368 $level,
369 $attribs,
370 $anchor,
371 $html,
372 $link,
373 $legacyAnchor
374 );
375 }
376
377 public function splitTrail( $trail ) {
378 return Linker::splitTrail( $trail );
379 }
380
381 public function generateRollback(
382 $rev,
383 IContextSource $context = null,
384 $options = [ 'verify' ]
385 ) {
387 $rev,
388 $context,
389 $options
390 );
391 }
392
393 public function getRollbackEditCount( $rev, $verify ) {
394 return Linker::getRollbackEditCount( $rev, $verify );
395 }
396
397 public function buildRollbackLink(
398 $rev,
399 IContextSource $context = null,
400 $editCount = false
401 ) {
403 $rev,
404 $context,
405 $editCount
406 );
407 }
408
409 public function formatHiddenCategories( $hiddencats ) {
410 return Linker::formatHiddenCategories( $hiddencats );
411 }
412
413 public function titleAttrib( $name, $options = null, array $msgParams = [] ) {
414 return Linker::titleAttrib(
415 $name,
416 $options,
417 $msgParams
418 );
419 }
420
421 public function accesskey( $name ) {
422 return Linker::accesskey( $name );
423 }
424
425 public function getRevDeleteLink( User $user, $rev, Title $title ) {
427 $user,
428 $rev,
429 $title
430 );
431 }
432
433 public function revDeleteLink( $query = [], $restricted = false, $delete = true ) {
435 $query,
436 $restricted,
437 $delete
438 );
439 }
440
441 public function revDeleteLinkDisabled( $delete = true ) {
442 return Linker::revDeleteLinkDisabled( $delete );
443 }
444
445 public function tooltipAndAccesskeyAttribs( $name, array $msgParams = [] ) {
447 $name,
448 $msgParams
449 );
450 }
451
452 public function tooltip( $name, $options = null ) {
453 return Linker::tooltip( $name, $options );
454 }
455
456}
revDeleteLinkDisabled( $delete=true)
makeThumbLinkObj(Title $title, $file, $label='', $alt='', $align='right', $params=[], $framed=false, $manualthumb="")
makeMediaLinkFile(Title $title, $file, $html='')
tocLine( $anchor, $tocline, $tocnumber, $level, $sectionIndex=false)
userLink( $userId, $userName, $altUserName=false)
makeExternalLink( $url, $text, $escape=true, $linktype='', $attribs=[], $title=null)
tocUnindent( $level)
titleAttrib( $name, $options=null, array $msgParams=[])
buildRollbackLink( $rev, IContextSource $context=null, $editCount=false)
userToolLinksRedContribs( $userId, $userText, $edits=null)
formatHiddenCategories( $hiddencats)
revUserTools( $rev, $isPublic=false)
tooltip( $name, $options=null)
makeExternalImage( $url, $alt='')
processResponsiveImages( $file, $thumb, $hp)
commentBlock( $comment, $title=null, $local=false, $wikiId=null)
generateTOC( $tree, Language $lang=null)
normaliseSpecialPage(Title $title)
getRevDeleteLink(User $user, $rev, Title $title)
emailLink( $userId, $userText)
makeMediaLinkObj( $title, $html='', $time=false)
makeThumbLink2(Title $title, $file, $frameParams=[], $handlerParams=[], $time=false, $query="")
getInvalidTitleDescription(IContextSource $context, $namespace, $title)
revUserLink( $rev, $isPublic=false)
makeHeadline( $level, $attribs, $anchor, $html, $link, $legacyAnchor=false)
accesskey( $name)
specialLink( $name, $key='')
getRollbackEditCount( $rev, $verify)
makeSelfLinkObj( $nt, $html='', $query='', $trail='', $prefix='')
makeImageLink(Parser $parser, Title $title, $file, $frameParams=[], $handlerParams=[], $time=false, $query="", $widthOption=null)
makeBrokenImageLinkObj( $title, $label='', $query='', $unused1='', $unused2='', $time=false)
revComment( $rev, $local=false, $isPublic=false)
userToolLinks( $userId, $userText, $redContribsWhenNoEdits=false, $flags=0, $edits=null)
tooltipAndAccesskeyAttribs( $name, array $msgParams=[])
normalizeSubpageLink( $contextTitle, $target, &$text)
link( $target, $html=null, $customAttribs=[], $query=[], $options=[])
splitTrail( $trail)
blockLink( $userId, $userText)
makeCommentLink(Title $title, $text, $wikiId=null, $options=[])
generateRollback( $rev, IContextSource $context=null, $options=[ 'verify'])
linkKnown( $target, $html=null, $customAttribs=[], $query=[], $options=[ 'known'])
tocList( $toc, Language $lang=null)
formatRevisionSize( $size)
formatLinksInComment( $comment, $title=null, $local=false, $wikiId=null)
formatComment( $comment, $title=null, $local=false, $wikiId=null)
userTalkLink( $userId, $userText)
revDeleteLink( $query=[], $restricted=false, $delete=true)
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
Definition Language.php:41
static generateRollback( $rev, IContextSource $context=null, $options=[ 'verify'])
Generate a rollback link for a given revision.
Definition Linker.php:1861
static makeMediaLinkFile(LinkTarget $title, $file, $html='')
Create a direct link to a given uploaded file.
Definition Linker.php:778
static link( $target, $html=null, $customAttribs=[], $query=[], $options=[])
This function returns an HTML link to the given target.
Definition Linker.php:86
static tocLine( $anchor, $tocline, $tocnumber, $level, $sectionIndex=false)
parameter level defines if we are on an indentation level
Definition Linker.php:1691
static userLink( $userId, $userName, $altUserName=false)
Make user link (or user contributions for unregistered users)
Definition Linker.php:896
static titleAttrib( $name, $options=null, array $msgParams=[])
Given the id of an interface element, constructs the appropriate title attribute from the system mess...
Definition Linker.php:2110
static accesskey( $name)
Given the id of an interface element, constructs the appropriate accesskey attribute from the system ...
Definition Linker.php:2158
static specialLink( $name, $key='')
Make a link to a special page given its name and, optionally, a message key from the link text.
Definition Linker.php:820
static linkKnown( $target, $html=null, $customAttribs=[], $query=[], $options=[ 'known'])
Identical to link(), except $options defaults to 'known'.
Definition Linker.php:142
static makeExternalImage( $url, $alt='')
Return the code for images which were added via external links, via Parser::maybeMakeExternalImage().
Definition Linker.php:243
static buildRollbackLink( $rev, IContextSource $context=null, $editCount=false)
Build a raw rollback link, useful for collections of "tool" links.
Definition Linker.php:1993
static makeCommentLink(LinkTarget $linkTarget, $text, $wikiId=null, $options=[])
Generates a link to the given LinkTarget.
Definition Linker.php:1451
static processResponsiveImages( $file, $thumb, $hp)
Process responsive images: add 1.5x and 2x subimages to the thumbnail, where applicable.
Definition Linker.php:639
static blockLink( $userId, $userText)
Definition Linker.php:1057
static revDeleteLinkDisabled( $delete=true)
Creates a dead (show/hide) link for deleting revisions/log entries.
Definition Linker.php:2275
static getRollbackEditCount( $rev, $verify)
This function will return the number of revisions which a rollback would revert and,...
Definition Linker.php:1916
static normalizeSubpageLink( $contextTitle, $target, &$text)
Definition Linker.php:1481
static makeSelfLinkObj( $nt, $html='', $query='', $trail='', $prefix='')
Make appropriate markup for a link to the current article.
Definition Linker.php:164
static tocIndent()
Add another level to the Table of Contents.
Definition Linker.php:1665
static makeImageLink(Parser $parser, LinkTarget $title, $file, $frameParams=[], $handlerParams=[], $time=false, $query="", $widthOption=null)
Given parameters derived from [[Image:Foo|options...]], generate the HTML that that syntax inserts in...
Definition Linker.php:299
static revUserLink( $rev, $isPublic=false)
Generate a user link if the current user is allowed to view it.
Definition Linker.php:1101
static revComment( $rev, $local=false, $isPublic=false, $useParentheses=true)
Wrap and format the given revision's comment block, if the current user is allowed to view it.
Definition Linker.php:1605
static getInvalidTitleDescription(IContextSource $context, $namespace, $title)
Get a message saying that an invalid title was encountered.
Definition Linker.php:188
static emailLink( $userId, $userText)
Definition Linker.php:1078
static formatHiddenCategories( $hiddencats)
Returns HTML for the "hidden categories on this page" list.
Definition Linker.php:2075
static splitTrail( $trail)
Split a link trail, return the "inside" portion and the remainder of the trail as a two-element array...
Definition Linker.php:1823
static makeThumbLink2(LinkTarget $title, $file, $frameParams=[], $handlerParams=[], $time=false, $query="")
Definition Linker.php:516
static generateTOC( $tree, Language $lang=null)
Generate a table of contents from a section tree.
Definition Linker.php:1764
static formatRevisionSize( $size)
Definition Linker.php:1650
static commentBlock( $comment, $title=null, $local=false, $wikiId=null, $useParentheses=true)
Wrap a comment in standard punctuation and formatting if it's non-empty, otherwise return empty strin...
Definition Linker.php:1574
static tooltip( $name, $options=null)
Returns raw bits of HTML, use titleAttrib()
Definition Linker.php:2344
static revUserTools( $rev, $isPublic=false, $useParentheses=true)
Generate a user tool link cluster if the current user is allowed to view it.
Definition Linker.php:1142
static userTalkLink( $userId, $userText)
Definition Linker.php:1035
static getRevDeleteLink(User $user, $rev, LinkTarget $title)
Get a revision-deletion link, or disabled link, or nothing, depending on user permissions & the setti...
Definition Linker.php:2195
static formatLinksInComment( $comment, $title=null, $local=false, $wikiId=null)
Formats wiki links and media links in text; all other wiki formatting is ignored.
Definition Linker.php:1330
static makeMediaLinkObj( $title, $html='', $time=false)
Create a direct link to a given uploaded file.
Definition Linker.php:759
static makeThumbLinkObj(LinkTarget $title, $file, $label='', $alt='', $align='right', $params=[], $framed=false, $manualthumb="")
Make HTML for a thumbnail including image, border and caption.
Definition Linker.php:490
static makeExternalLink( $url, $text, $escape=true, $linktype='', $attribs=[], $title=null)
Make an external link.
Definition Linker.php:846
static userToolLinks( $userId, $userText, $redContribsWhenNoEdits=false, $flags=0, $edits=null, $useParentheses=true)
Generate standard user tool links (talk, contributions, block link, etc.)
Definition Linker.php:941
static makeHeadline( $level, $attribs, $anchor, $html, $link, $fallbackAnchor=false)
Create a headline for content.
Definition Linker.php:1802
static tocUnindent( $level)
Finish one or more sublevels on the Table of Contents.
Definition Linker.php:1676
static tooltipAndAccesskeyAttribs( $name, array $msgParams=[], $options=null)
Returns the attributes for the tooltip and access key.
Definition Linker.php:2294
static tocList( $toc, Language $lang=null)
Wraps the TOC in a div with ARIA navigation role and provides the hide/collapse JavaScript.
Definition Linker.php:1727
static revDeleteLink( $query=[], $restricted=false, $delete=true)
Creates a (show/hide) link for deleting revisions/log entries.
Definition Linker.php:2253
static tocLineEnd()
End a Table Of Contents line.
Definition Linker.php:1715
static formatComment( $comment, $title=null, $local=false, $wikiId=null)
This function is called by all recent changes variants, by the page history, and by the user contribu...
Definition Linker.php:1199
static userToolLinksRedContribs( $userId, $userText, $edits=null, $useParentheses=true)
Alias for userToolLinks( $userId, $userText, true );.
Definition Linker.php:1023
static makeBrokenImageLinkObj( $title, $label='', $query='', $unused1='', $unused2='', $time=false)
Make a "broken" link to an image.
Definition Linker.php:674
MediaWikiServices is the service locator for the application scope of MediaWiki.
Represents a title within MediaWiki.
Definition Title.php:42
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:60
Interface for objects which can provide a MediaWiki context on request.
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.
Definition router.php:42
if(!isset( $args[0])) $lang