3 require_once("QueryPage.php");
5 class CategoriesPage
extends QueryPage
{
11 function isExpensive() {
17 $dbr =& wfGetDB( DB_SLAVE
);
18 $categorylinks = $dbr->tableName( 'categorylinks' );
19 return "SELECT DISTINCT 'Categories' as type,
20 {$NScat} as namespace,
26 function sortDescending() {
30 function formatResult( $skin, $result ) {
32 $title = Title
::makeTitle( NS_CATEGORY
, $result->title
);
33 return $skin->makeLinkObj( $title, $title->getText() );
37 function wfSpecialCategories()
39 list( $limit, $offset ) = wfCheckLimits();
41 $cap = new CategoriesPage();
43 return $cap->doQuery( $offset, $limit );