3 require_once( "QueryPage.php" );
5 class LongPagesPage
extends QueryPage
{
11 function isExpensive() {
16 $dbr =& wfGetDB( DB_SLAVE
);
17 $cur = $dbr->tableName( 'cur' );
20 "SELECT 'Longpages' as type,
21 cur_namespace as namespace,
23 LENGTH(cur_text) AS value
25 WHERE cur_namespace=0 AND cur_is_redirect=0";
28 function formatResult( $skin, $result ) {
30 $nb = wfMsg( "nbytes", $wgLang->formatNum( $result->value
) );
31 $link = $skin->makeKnownLink( $result->title
, "" );
32 return "{$link} ({$nb})";
36 function wfSpecialLongpages()
38 list( $limit, $offset ) = wfCheckLimits();
40 $lpp = new LongPagesPage( );
42 $lpp->doQuery( $offset, $limit );