Inherits PageQueryPage.
Public Member Functions | |
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. | |
getPageHeader () | |
The content returned by this function will be output before any result. | |
getSQLText (&$dbr, $namespace=null, $title=null) | |
getSQL () | |
Subclasses return an SQL query here. | |
getOrder () | |
formatResult ($skin, $result) | |
Format the result as a simple link to the page. |
The software will automatically not follow double redirects, to prevent loops.
Definition at line 12 of file SpecialDoubleRedirects.php.
DoubleRedirectsPage::formatResult | ( | $ | skin, | |
$ | row | |||
) |
Format the result as a simple link to the page.
$skin | Skin | |
$row | Object: result row |
Reimplemented from PageQueryPage.
Definition at line 61 of file SpecialDoubleRedirects.php.
References $dbr, $fname, $res, $result, $sql, $wgContLang, getSQLText(), Title::makeTitle(), wfGetDB(), and wfMsg().
DoubleRedirectsPage::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 14 of file SpecialDoubleRedirects.php.
DoubleRedirectsPage::getOrder | ( | ) |
DoubleRedirectsPage::getPageHeader | ( | ) |
The content returned by this function will be output before any result.
Reimplemented from QueryPage.
Definition at line 21 of file SpecialDoubleRedirects.php.
References wfMsgExt().
DoubleRedirectsPage::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 52 of file SpecialDoubleRedirects.php.
References $dbr, getSQLText(), and wfGetDB().
DoubleRedirectsPage::getSQLText | ( | &$ | dbr, | |
$ | namespace = null , |
|||
$ | title = null | |||
) |
Definition at line 25 of file SpecialDoubleRedirects.php.
References $dbr, $page, $sql, and $title.
Referenced by formatResult(), and getSQL().
DoubleRedirectsPage::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 18 of file SpecialDoubleRedirects.php.
DoubleRedirectsPage::isSyndicated | ( | ) |
Sometime we dont want to build rss / atom feeds.
Reimplemented from QueryPage.
Definition at line 19 of file SpecialDoubleRedirects.php.