[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/specialpage/ -> WantedQueryPage.php (summary)

Class definition for a wanted query page. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 130 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  isExpensive()
  isSyndicated()
  preprocessResults()
  forceExistenceCheck()
  formatResult()
  existenceCheck()
  makeWlhLink()

Functions
Functions that are not part of a class:

isExpensive()   X-Ref
Class definition for a wanted query page like
WantedPages, WantedTemplates, etc


isSyndicated()   X-Ref
No description

preprocessResults( $db, $res )   X-Ref
Cache page existence for performance

param: DatabaseBase $db
param: ResultWrapper $res

forceExistenceCheck()   X-Ref
Should formatResult() always check page existence, even if
the results are fresh?  This is a (hopefully temporary)
kluge for Special:WantedFiles, which may contain false
positives for files that exist e.g. in a shared repo (bug
6220).

return: bool

formatResult( $skin, $result )   X-Ref
Format an individual result

param: Skin $skin Skin to use for UI elements
param: object $result Result row
return: string

existenceCheck( Title $title )   X-Ref
Does the Title currently exists

This method allows a subclass to override this check
(For example, wantedfiles, would want to check if the file exists
not just that a page in the file namespace exists).

This will only control if the link is crossed out. Whether or not the link
is blue vs red is controlled by if the title exists.

return: boolean

makeWlhLink( $title, $result )   X-Ref
Make a "what links here" link for a given title

param: Title $title Title to make the link for
param: object $result Result row
return: string



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1