MediaWiki  1.23.0
SpecialMostimages.php
Go to the documentation of this file.
1 <?php
33  function __construct( $name = 'Mostimages' ) {
34  parent::__construct( $name );
35  }
36 
37  function isExpensive() {
38  return true;
39  }
40 
41  function isSyndicated() {
42  return false;
43  }
44 
45  function getQueryInfo() {
46  return array(
47  'tables' => array( 'imagelinks' ),
48  'fields' => array(
49  'namespace' => NS_FILE,
50  'title' => 'il_to',
51  'value' => 'COUNT(*)'
52  ),
53  'options' => array(
54  'GROUP BY' => 'il_to',
55  'HAVING' => 'COUNT(*) > 1'
56  )
57  );
58  }
59 
60  function getCellHtml( $row ) {
61  return $this->msg( 'nimagelinks' )->numParams( $row->value )->escaped() . '<br />';
62  }
63 
64  protected function getGroupName() {
65  return 'highuse';
66  }
67 }
MostimagesPage\getQueryInfo
getQueryInfo()
Subclasses return an SQL query here, formatted as an array with the following keys: tables => Table(s...
Definition: SpecialMostimages.php:45
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
MostimagesPage\__construct
__construct( $name='Mostimages')
Definition: SpecialMostimages.php:33
MostimagesPage\getGroupName
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
Definition: SpecialMostimages.php:64
MostimagesPage\isSyndicated
isSyndicated()
Sometime we don't want to build rss / atom feeds.
Definition: SpecialMostimages.php:41
NS_FILE
const NS_FILE
Definition: Defines.php:85
MostimagesPage\isExpensive
isExpensive()
Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
Definition: SpecialMostimages.php:37
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
MostimagesPage
A special page page that list most used images.
Definition: SpecialMostimages.php:32
$name
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:336
SpecialPage\msg
msg()
Wrapper around wfMessage that sets the current context.
Definition: SpecialPage.php:609
MostimagesPage\getCellHtml
getCellHtml( $row)
Get additional HTML to be shown in a results' cell.
Definition: SpecialMostimages.php:60
ImageQueryPage
Variant of QueryPage which uses a gallery to output results, thus suited for reports generating image...
Definition: ImageQueryPage.php:31