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