4 * @addtogroup SpecialPage
9 * @addtogroup SpecialPage
11 class CategoriesPage
extends QueryPage
{
17 function isExpensive() {
21 function isSyndicated() { return false; }
23 function getPageHeader() {
24 return wfMsgWikiHtml( 'categoriespagetext' );
29 $dbr =& wfGetDB( DB_SLAVE
);
30 $categorylinks = $dbr->tableName( 'categorylinks' );
31 $implicit_groupby = $dbr->implicitGroupby() ?
'1' : 'cl_to';
32 $s= "SELECT 'Categories' as type,
33 {$NScat} as namespace,
35 $implicit_groupby as value,
42 function sortDescending() {
46 function formatResult( $skin, $result ) {
48 $title = Title
::makeTitle( NS_CATEGORY
, $result->title
);
49 $plink = $skin->makeLinkObj( $title, $title->getText() );
50 $nlinks = wfMsgExt( 'nmembers', array( 'parsemag', 'escape'),
51 $wgLang->formatNum( $result->count
) );
52 return wfSpecialList($plink, $nlinks);
59 function wfSpecialCategories() {
60 list( $limit, $offset ) = wfCheckLimits();
62 $cap = new CategoriesPage();
64 return $cap->doQuery( $offset, $limit );