MediaWiki  REL1_24
ListDuplicatedFilesPage Class Reference

Special:ListDuplicatedFiles Lists all files where the current version is a duplicate of the current version of some other file. More...

Inheritance diagram for ListDuplicatedFilesPage:
Collaboration diagram for ListDuplicatedFilesPage:

List of all members.

Public Member Functions

 __construct ($name= 'ListDuplicatedFiles')
 formatResult ($skin, $result)
 getQueryInfo ()
 Get all the duplicates by grouping on sha1s.
 isExpensive ()
 Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
 isSyndicated ()
 Sometime we don't want to build rss / atom feeds.
 preprocessResults ($db, $res)
 Pre-fill the link cache.

Protected Member Functions

 getGroupName ()
 Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.

Detailed Description

Special:ListDuplicatedFiles Lists all files where the current version is a duplicate of the current version of some other file.

Definition at line 32 of file SpecialListDuplicatedFiles.php.


Constructor & Destructor Documentation

ListDuplicatedFilesPage::__construct ( name = 'ListDuplicatedFiles')

Definition at line 33 of file SpecialListDuplicatedFiles.php.

References $name.


Member Function Documentation

ListDuplicatedFilesPage::formatResult ( skin,
result 
)
Parameters:
Skin$skin
object$resultResult row
Returns:
string

Reimplemented from QueryPage.

Definition at line 96 of file SpecialListDuplicatedFiles.php.

References $result, SpecialPage\getTitleFor(), Title\makeTitle(), and SpecialPage\msg().

Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.

Returns:
string
Since:
1.21

Reimplemented from SpecialPage.

Definition at line 110 of file SpecialListDuplicatedFiles.php.

Get all the duplicates by grouping on sha1s.

A cheaper (but less useful) version of this query would be to not care how many duplicates a particular file has, and do a self-join on image table. However this version should be no more expensive then Special:MostLinked, which seems to get handled fine with however we are doing cached special pages.

Returns:
array

Reimplemented from QueryPage.

Definition at line 56 of file SpecialListDuplicatedFiles.php.

References array().

Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.

$wgDisableQueryPages causes all query pages to be declared expensive. Some query pages are always expensive.

Returns:
bool

Reimplemented from QueryPage.

Definition at line 37 of file SpecialListDuplicatedFiles.php.

Sometime we don't want to build rss / atom feeds.

Returns:
bool

Reimplemented from QueryPage.

Definition at line 41 of file SpecialListDuplicatedFiles.php.

Pre-fill the link cache.

Parameters:
DatabaseBase$db
ResultWrapper$res

Reimplemented from QueryPage.

Definition at line 77 of file SpecialListDuplicatedFiles.php.

References $res, and as.


The documentation for this class was generated from the following file: