SpecialMostlinkedtemplates Class Reference
[SpecialPage]

Special page lists templates with a large number of transclusion links, i.e. More...

Inherits QueryPage.

List of all members.

Public Member Functions

 getName ()
 Name of the report.
 isExpensive ()
 Is this report expensive, i.e should it be cached?
 isSyndicated ()
 Is there a feed available?
 sortDescending ()
 Sort the results in descending order?
 getSql ()
 Generate SQL for the report.
 preprocessResults ($db, $res)
 Pre-cache page existence to speed up link generation.
 formatResult ($skin, $result)
 Format a result row.

Private Member Functions

 makeWlhLink ($title, $skin, $result)
 Make a "what links here" link for a given title.


Detailed Description

Special page lists templates with a large number of transclusion links, i.e.

"most used" templates

Author:
Rob Church <robchur@gmail.com>

Definition at line 14 of file SpecialMostlinkedtemplates.php.


Member Function Documentation

SpecialMostlinkedtemplates::formatResult ( skin,
result 
)

Format a result row.

Parameters:
$skin Skin to use for UI elements
$result Result row
Returns:
String

Reimplemented from QueryPage.

Definition at line 93 of file SpecialMostlinkedtemplates.php.

References $result, $title, Title::makeTitleSafe(), makeWlhLink(), and wfSpecialList().

SpecialMostlinkedtemplates::getName (  ) 

Name of the report.

Returns:
String

Reimplemented from QueryPage.

Definition at line 21 of file SpecialMostlinkedtemplates.php.

Referenced by getSql().

SpecialMostlinkedtemplates::getSql (  ) 

Generate SQL for the report.

Returns:
String

Definition at line 57 of file SpecialMostlinkedtemplates.php.

References $dbr, $name, getName(), and wfGetDB().

SpecialMostlinkedtemplates::isExpensive (  ) 

Is this report expensive, i.e should it be cached?

Returns:
Boolean

Reimplemented from QueryPage.

Definition at line 30 of file SpecialMostlinkedtemplates.php.

SpecialMostlinkedtemplates::isSyndicated (  ) 

Is there a feed available?

Returns:
Boolean

Reimplemented from QueryPage.

Definition at line 39 of file SpecialMostlinkedtemplates.php.

SpecialMostlinkedtemplates::makeWlhLink ( title,
skin,
result 
) [private]

Make a "what links here" link for a given title.

Parameters:
$title Title to make the link for
$skin Skin to use
$result Result row
Returns:
String

Definition at line 110 of file SpecialMostlinkedtemplates.php.

References $result, $title, $wgLang, SpecialPage::getTitleFor(), and wfMsgExt().

Referenced by formatResult().

SpecialMostlinkedtemplates::preprocessResults ( db,
res 
)

Pre-cache page existence to speed up link generation.

Parameters:
$db Database connection
$res ResultWrapper

Reimplemented from QueryPage.

Definition at line 76 of file SpecialMostlinkedtemplates.php.

References $res.

SpecialMostlinkedtemplates::sortDescending (  ) 

Sort the results in descending order?

Returns:
Boolean

Reimplemented from QueryPage.

Definition at line 48 of file SpecialMostlinkedtemplates.php.


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

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