MediaWiki
REL1_19
|
Class definition for a wanted query page like WantedPages, WantedTemplates, etc. More...
Public Member Functions | |
forceExistenceCheck () | |
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. | |
formatResult ($skin, $result) | |
Format an individual result. | |
isExpensive () | |
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode. | |
isSyndicated () | |
Sometime we dont want to build rss / atom feeds. | |
preprocessResults ($db, $res) | |
Cache page existence for performance. | |
Private Member Functions | |
makeWlhLink ($title, $result) | |
Make a "what links here" link for a given title. |
Class definition for a wanted query page like WantedPages, WantedTemplates, etc.
Definition at line 716 of file QueryPage.php.
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).
Reimplemented in WantedFilesPage.
Definition at line 749 of file QueryPage.php.
Referenced by formatResult().
WantedQueryPage::formatResult | ( | $ | skin, |
$ | result | ||
) |
Format an individual result.
$skin | Skin to use for UI elements |
$result | Result row |
Reimplemented from QueryPage.
Reimplemented in WantedCategoriesPage.
Definition at line 760 of file QueryPage.php.
References $result, $title, forceExistenceCheck(), SpecialPage\getLanguage(), QueryPage\isCached(), Linker\link(), Title\makeTitleSafe(), makeWlhLink(), and SpecialPage\msg().
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
$wgDisableQueryPages causes all query pages to be declared expensive. Some query pages are always expensive.
Reimplemented from QueryPage.
Definition at line 718 of file QueryPage.php.
Sometime we dont want to build rss / atom feeds.
Reimplemented from QueryPage.
Definition at line 722 of file QueryPage.php.
WantedQueryPage::makeWlhLink | ( | $ | title, |
$ | result | ||
) | [private] |
Make a "what links here" link for a given title.
$title | Title to make the link for |
$result | Object: result row |
Definition at line 795 of file QueryPage.php.
References $result, $title, SpecialPage\getTitleFor(), Linker\link(), and SpecialPage\msg().
Referenced by formatResult().
WantedQueryPage::preprocessResults | ( | $ | db, |
$ | res | ||
) |
Cache page existence for performance.
Reimplemented from QueryPage.
Definition at line 729 of file QueryPage.php.
References $res, and LinkBatch\add().