3 require_once( "QueryPage.php" );
5 class LongPagesPage
extends QueryPage
{
11 function isExpensive() {
17 "SELECT 'Longpages' as type,
18 cur_namespace as namespace,
20 LENGTH(cur_text) AS value
22 WHERE cur_namespace=0 AND cur_is_redirect=0";
25 function formatResult( $skin, $result ) {
27 $nb = wfMsg( "nbytes", $wgLang->formatNum( $result->value
) );
28 $link = $skin->makeKnownLink( $result->title
, "" );
29 return "{$link} ({$nb})";
33 function wfSpecialLongpages()
35 list( $limit, $offset ) = wfCheckLimits();
37 $lpp = new LongPagesPage( );
39 $lpp->doQuery( $offset, $limit );