BrokenRedirectsPage Class Reference
[SpecialPage]

A special page listing redirects to non existent page. More...

Inherits PageQueryPage.

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.
 getPageHeader ()
 The content returned by this function will be output before any result.
 getSQL ()
 Subclasses return an SQL query here.
 getOrder ()
 formatResult ($skin, $result)
 Format the result as a simple link to the page.

Public Attributes

 $targets = array()


Detailed Description

A special page listing redirects to non existent page.

Those should be fixed to point to an existing page.

Definition at line 12 of file SpecialBrokenRedirects.php.


Member Function Documentation

BrokenRedirectsPage::formatResult ( skin,
row 
)

Format the result as a simple link to the page.

Parameters:
$skin Skin
$row Object: result row
Returns:
string

Reimplemented from PageQueryPage.

Definition at line 47 of file SpecialBrokenRedirects.php.

References $delete, $out, $result, $wgContLang, $wgUser, Title::makeTitle(), and wfMsgHtml().

BrokenRedirectsPage::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.

Reimplemented from QueryPage.

Definition at line 15 of file SpecialBrokenRedirects.php.

BrokenRedirectsPage::getOrder (  ) 

Reimplemented from QueryPage.

Definition at line 43 of file SpecialBrokenRedirects.php.

BrokenRedirectsPage::getPageHeader (  ) 

The content returned by this function will be output before any result.

Reimplemented from QueryPage.

Definition at line 22 of file SpecialBrokenRedirects.php.

References wfMsgExt().

BrokenRedirectsPage::getSQL (  ) 

Subclasses return an SQL query here.

Note that the query itself should return the following four columns: 'type' (your special page's name), 'namespace', 'title', and 'value' *in that order*. 'value' is used for sorting.

These may be stored in the querycache table for expensive queries, and that cached data will be returned sometimes, so the presence of extra fields can't be relied upon. The cached 'value' column will be an integer; non-numeric values are useful only for sorting the initial query.

Don't include an ORDER or LIMIT clause, this will be added.

Reimplemented from QueryPage.

Definition at line 26 of file SpecialBrokenRedirects.php.

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

BrokenRedirectsPage::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.

Reimplemented from QueryPage.

Definition at line 19 of file SpecialBrokenRedirects.php.

BrokenRedirectsPage::isSyndicated (  ) 

Sometime we dont want to build rss / atom feeds.

Reimplemented from QueryPage.

Definition at line 20 of file SpecialBrokenRedirects.php.


Member Data Documentation

BrokenRedirectsPage::$targets = array()

Definition at line 13 of file SpecialBrokenRedirects.php.


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

Generated on Sat Sep 5 02:08:33 2009 for MediaWiki by  doxygen 1.5.9