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 Skin to use for UI elements
object $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:
bool

Reimplemented from QueryPage.

Definition at line 30 of file SpecialMostlinkedtemplates.php.

SpecialMostlinkedtemplates::isSyndicated (  ) 

Is there a feed available?

Returns:
bool

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 Title to make the link for
Skin $skin Skin to use
object $result Result row
Returns:
string

Definition at line 111 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:
Database $dbr Database connection
int $res Result pointer

Reimplemented from QueryPage.

Definition at line 76 of file SpecialMostlinkedtemplates.php.

References $batch, $db, $res, and $row.

SpecialMostlinkedtemplates::sortDescending (  ) 

Sort the results in descending order?

Returns:
bool

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 Sep 5 02:08:47 2009 for MediaWiki by  doxygen 1.5.9