5 * @subpackage SpecialPage
11 require_once("QueryPage.php");
16 * @subpackage SpecialPage
18 class CategoriesPage
extends QueryPage
{
24 function isExpensive() {
28 function isSyndicated() { return false; }
30 function getPageHeader() {
31 return '<p>'.wfMsg('categoriespagetext')."</p><br />\n";
35 $dbr =& wfGetDB( DB_SLAVE
);
36 $categorylinks = $dbr->tableName( 'categorylinks' );
37 return "SELECT DISTINCT 'Categories' as type,
38 {$NScat} as namespace,
44 function sortDescending() {
48 function formatResult( $skin, $result ) {
50 $title = Title
::makeTitle( NS_CATEGORY
, $result->title
);
51 return $skin->makeLinkObj( $title, $title->getText() );
58 function wfSpecialCategories() {
59 list( $limit, $offset ) = wfCheckLimits();
61 $cap = new CategoriesPage();
63 return $cap->doQuery( $offset, $limit );