<?php
-
-require_once( "QueryPage.php" );
-
-class LongPagesPage extends QueryPage {
+/**
+ *
+ * @package MediaWiki
+ * @subpackage SpecialPage
+ */
+
+/**
+ *
+ */
+require_once( 'SpecialShortpages.php' );
+
+/**
+ *
+ * @package MediaWiki
+ * @subpackage SpecialPage
+ */
+class LongPagesPage extends ShortPagesPage {
function getName() {
return "Longpages";
}
- function isExpensive() {
- return 1;
- }
-
- function getSQL( $offset, $limit ) {
- return "SELECT cur_title, LENGTH(cur_text) AS len FROM cur " .
- "WHERE cur_namespace=0 AND cur_is_redirect=0 ORDER BY len DESC " .
- "LIMIT {$offset}, {$limit}";
- }
-
- function formatResult( $skin, $result ) {
- global $wgLang;
- $nb = wfMsg( "nbytes", $wgLang->formatNum( $result->len ) );
- $link = $skin->makeKnownLink( $result->cur_title, "" );
- return "{$link} ({$nb})";
+ function sortDescending() {
+ return true;
}
}
+/**
+ * constructor
+ */
function wfSpecialLongpages()
{
list( $limit, $offset ) = wfCheckLimits();
- $lpp = new LongPagesPage( );
+ $lpp = new LongPagesPage();
$lpp->doQuery( $offset, $limit );
}