Public Member Functions | |
isExpensive () | |
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode. | |
getName () | |
Subclasses return their name here. | |
getPageHeader () | |
The content returned by this function will be output before any result. | |
getSQL () | |
Subclasses return an SQL query here. | |
formatResult ($skin, $result) | |
Formats the results of the query for display. |
Definition at line 10 of file SpecialUnusedcategories.php.
UnusedCategoriesPage::formatResult | ( | $ | skin, | |
$ | result | |||
) |
Formats the results of the query for display.
The skin is the current skin; you can use it for making links. The result is a single row of result data. You should be able to grab SQL results off of it. If the function return "false", the line output will be skipped.
Reimplemented from QueryPage.
Definition at line 35 of file SpecialUnusedcategories.php.
References $result, $title, and Title::makeTitle().
UnusedCategoriesPage::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 SpecialUnusedcategories.php.
UnusedCategoriesPage::getPageHeader | ( | ) |
The content returned by this function will be output before any result.
Reimplemented from QueryPage.
Definition at line 18 of file SpecialUnusedcategories.php.
References wfMsgExt().
UnusedCategoriesPage::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 22 of file SpecialUnusedcategories.php.
UnusedCategoriesPage::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 12 of file SpecialUnusedcategories.php.