Inherits QueryPage.
Public Member Functions | |
WantedPagesPage ($inc=false, $nlinks=true) | |
getName () | |
Subclasses return their name here. | |
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. | |
getSQL () | |
Subclasses return an SQL query here. | |
preprocessResults ($db, $res) | |
Cache page existence for performance. | |
formatResult ($skin, $result) | |
Format an individual result. | |
Public Attributes | |
$nlinks | |
Private Member Functions | |
makeWlhLink ($title, $skin, $result) | |
Make a "what links here" link for a specified result if required. |
Definition at line 11 of file SpecialWantedpages.php.
WantedPagesPage::formatResult | ( | $ | skin, | |
$ | result | |||
) |
Format an individual result.
$skin | Skin to use for UI elements | |
$result | Result row |
Reimplemented from QueryPage.
Definition at line 75 of file SpecialWantedpages.php.
References $result, $title, QueryPage::isCached(), Title::makeTitleSafe(), makeWlhLink(), wfMsg(), and wfSpecialList().
WantedPagesPage::getName | ( | ) |
Subclasses return their name here.
Make sure the name is also specified in SpecialPage.php and in Language.php as a language message param.
Reimplemented from QueryPage.
Definition at line 19 of file SpecialWantedpages.php.
WantedPagesPage::getSQL | ( | ) |
Subclasses return an SQL query here.
Note that the query itself should return the following four columns: 'type' (your special page's name), 'namespace', 'title', and 'value' *in that order*. 'value' is used for sorting.
These may be stored in the querycache table for expensive queries, and that cached data will be returned sometimes, so the presence of extra fields can't be relied upon. The cached 'value' column will be an integer; non-numeric values are useful only for sorting the initial query.
Don't include an ORDER or LIMIT clause, this will be added.
Reimplemented from QueryPage.
Definition at line 28 of file SpecialWantedpages.php.
References $count, $dbr, $page, $sql, $wgWantedPagesThreshold, wfGetDB(), and wfRunHooks().
WantedPagesPage::isExpensive | ( | ) |
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 23 of file SpecialWantedpages.php.
WantedPagesPage::isSyndicated | ( | ) |
Sometime we dont want to build rss / atom feeds.
Reimplemented from QueryPage.
Definition at line 26 of file SpecialWantedpages.php.
WantedPagesPage::makeWlhLink | ( | $ | title, | |
$ | skin, | |||
$ | result | |||
) | [private] |
Make a "what links here" link for a specified result if required.
Definition at line 100 of file SpecialWantedpages.php.
References $result, $title, $wgLang, SpecialPage::getTitleFor(), and wfMsgExt().
Referenced by formatResult().
WantedPagesPage::preprocessResults | ( | $ | db, | |
$ | res | |||
) |
WantedPagesPage::WantedPagesPage | ( | $ | inc = false , |
|
$ | nlinks = true | |||
) |
Definition at line 14 of file SpecialWantedpages.php.
References $nlinks, and QueryPage::setListoutput().
WantedPagesPage::$nlinks |