MediaWiki  REL1_19
SpecialMostimages.php
Go to the documentation of this file.
00001 <?php
00032 class MostimagesPage extends ImageQueryPage {
00033 
00034         function __construct( $name = 'Mostimages' ) {
00035                 parent::__construct( $name );
00036         }
00037 
00038         function isExpensive() { return true; }
00039         function isSyndicated() { return false; }
00040 
00041         function getQueryInfo() {
00042                 return array (
00043                         'tables' => array ( 'imagelinks' ),
00044                         'fields' => array ( "'" . NS_FILE . "' AS namespace",
00045                                         'il_to AS title',
00046                                         'COUNT(*) AS value' ),
00047                         'options' => array ( 'GROUP BY' => 'il_to',
00048                                         'HAVING' => 'COUNT(*) > 1' )
00049                 );
00050         }
00051 
00052         function getCellHtml( $row ) {
00053                 return $this->msg( 'nimagelinks' )->numParams( $row->value )->escaped() . '<br />';
00054         }
00055 
00056 }