3 require_once("QueryPage.php");
5 class CategoriesPage
extends QueryPage
{
11 function isExpensive() {
17 return "SELECT DISTINCT 'Categories' as type,
18 {$NScat} as namespace,
24 function sortDescending() {
28 function formatResult( $skin, $result ) {
30 $title = Title
::makeTitle( NS_CATEGORY
, $result->title
);
31 return $skin->makeLinkObj( $title, $title->getText() );
35 function wfSpecialCategories()
37 list( $limit, $offset ) = wfCheckLimits();
39 $cap = new CategoriesPage();
41 return $cap->doQuery( $offset, $limit );