5 * @subpackage SpecialPage
11 * @subpackage SpecialPage
13 class CategoriesPage
extends QueryPage
{
19 function isExpensive() {
23 function isSyndicated() { return false; }
25 function getPageHeader() {
26 return wfMsgWikiHtml( 'categoriespagetext' );
31 $dbr =& wfGetDB( DB_SLAVE
);
32 $categorylinks = $dbr->tableName( 'categorylinks' );
33 $s= "SELECT 'Categories' as type,
34 {$NScat} as namespace,
43 function sortDescending() {
47 function formatResult( $skin, $result ) {
49 $title = Title
::makeTitle( NS_CATEGORY
, $result->title
);
50 $plink = $skin->makeLinkObj( $title, $title->getText() );
51 $nlinks = wfMsgExt( 'nmembers', array( 'parsemag', 'escape'),
52 $wgLang->formatNum( $result->count
) );
53 return wfSpecialList($plink, $nlinks);
60 function wfSpecialCategories() {
61 list( $limit, $offset ) = wfCheckLimits();
63 $cap = new CategoriesPage();
65 return $cap->doQuery( $offset, $limit );