9 require_once( "QueryPage.php" );
14 class LongPagesPage
extends QueryPage
{
20 function isExpensive() {
25 $dbr =& wfGetDB( DB_SLAVE
);
26 $cur = $dbr->tableName( 'cur' );
29 "SELECT 'Longpages' as type,
30 cur_namespace as namespace,
32 LENGTH(cur_text) AS value
34 WHERE cur_namespace=0 AND cur_is_redirect=0";
37 function formatResult( $skin, $result ) {
39 $nb = wfMsg( "nbytes", $wgLang->formatNum( $result->value
) );
40 $link = $skin->makeKnownLink( $result->title
, "" );
41 return "{$link} ({$nb})";
48 function wfSpecialLongpages()
50 list( $limit, $offset ) = wfCheckLimits();
52 $lpp = new LongPagesPage( );
54 $lpp->doQuery( $offset, $limit );