b9a01fab8b6093dcff20df6e996f67dc23c2c3e3
9 require_once("QueryPage.php");
14 class CategoriesPage
extends QueryPage
{
20 function isExpensive() {
26 $dbr =& wfGetDB( DB_SLAVE
);
27 $categorylinks = $dbr->tableName( 'categorylinks' );
28 return "SELECT DISTINCT 'Categories' as type,
29 {$NScat} as namespace,
35 function sortDescending() {
39 function formatResult( $skin, $result ) {
41 $title = Title
::makeTitle( NS_CATEGORY
, $result->title
);
42 return $skin->makeLinkObj( $title, $title->getText() );
49 function wfSpecialCategories() {
50 list( $limit, $offset ) = wfCheckLimits();
52 $cap = new CategoriesPage();
54 return $cap->doQuery( $offset, $limit );