FewestrevisionsPage Class Reference
[SpecialPage]

Special page for listing the articles with the fewest revisions. More...

Inherits QueryPage.

List of all members.

Public Member Functions

 getName ()
 Subclasses return their name here.
 isExpensive ()
 Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
 isSyndicated ()
 Sometime we dont want to build rss / atom feeds.
 getSql ()
 sortDescending ()
 Override to sort by increasing values.
 formatResult ($skin, $result)
 Formats the results of the query for display.


Detailed Description

Special page for listing the articles with the fewest revisions.

Author:
Martin Drashkov

Definition at line 13 of file SpecialFewestrevisions.php.


Member Function Documentation

FewestrevisionsPage::formatResult ( skin,
result 
)

Formats the results of the query for display.

The skin is the current skin; you can use it for making links. The result is a single row of result data. You should be able to grab SQL results off of it. If the function return "false", the line output will be skipped.

Parameters:
$skin Skin object
$result Object: database row

Reimplemented from QueryPage.

Definition at line 52 of file SpecialFewestrevisions.php.

References $result, $wgContLang, $wgLang, Title::makeTitleSafe(), wfMsgExt(), wfMsgHtml(), and wfSpecialList().

FewestrevisionsPage::getName (  ) 

Subclasses return their name here.

Make sure the name is also specified in SpecialPage.php and in Language.php as a language message param.

Returns:
String

Reimplemented from QueryPage.

Definition at line 15 of file SpecialFewestrevisions.php.

FewestrevisionsPage::getSql (  ) 

Definition at line 27 of file SpecialFewestrevisions.php.

References $dbr, $page, and wfGetDB().

FewestrevisionsPage::isExpensive (  ) 

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:
Boolean

Reimplemented from QueryPage.

Definition at line 19 of file SpecialFewestrevisions.php.

FewestrevisionsPage::isSyndicated (  ) 

Sometime we dont want to build rss / atom feeds.

Returns:
Boolean

Reimplemented from QueryPage.

Definition at line 23 of file SpecialFewestrevisions.php.

FewestrevisionsPage::sortDescending (  ) 

Override to sort by increasing values.

Returns:
Boolean

Reimplemented from QueryPage.

Definition at line 48 of file SpecialFewestrevisions.php.


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

Generated on Sat Apr 30 22:57:37 2011 for MediaWiki by  doxygen 1.5.9