MediaWiki  REL1_21
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() {
00039                 return true;
00040         }
00041 
00042         function isSyndicated() {
00043                 return false;
00044         }
00045 
00046         function getQueryInfo() {
00047                 return array (
00048                         'tables' => array ( 'imagelinks' ),
00049                         'fields' => array ( 'namespace' => NS_FILE,
00050                                         'title' => 'il_to',
00051                                         'value' => 'COUNT(*)' ),
00052                         'options' => array ( 'GROUP BY' => 'il_to',
00053                                         'HAVING' => 'COUNT(*) > 1' )
00054                 );
00055         }
00056 
00057         function getCellHtml( $row ) {
00058                 return $this->msg( 'nimagelinks' )->numParams( $row->value )->escaped() . '<br />';
00059         }
00060 
00061         protected function getGroupName() {
00062                 return 'highuse';
00063         }
00064 }