WithoutInterwikiPage Class Reference
[SpecialPage]

Special page lists pages without language links. More...

Inherits PageQueryPage.

List of all members.

Public Member Functions

 getName ()
 Subclasses return their name here.
 getPageHeader ()
 The content returned by this function will be output before any result.
 sortDescending ()
 Override to sort by increasing values.
 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 ()
 Subclasses return an SQL query here.
 setPrefix ($prefix= '')

Private Attributes

 $prefix = ''


Detailed Description

Special page lists pages without language links.

Author:
Rob Church <robchur@gmail.com>

Definition at line 13 of file SpecialWithoutinterwiki.php.


Member Function Documentation

WithoutInterwikiPage::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 16 of file SpecialWithoutinterwiki.php.

Referenced by getPageHeader().

WithoutInterwikiPage::getPageHeader (  ) 

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

Reimplemented from QueryPage.

Definition at line 20 of file SpecialWithoutinterwiki.php.

References $prefix, $t, $wgMiserMode, $wgScript, Xml::closeElement(), Xml::element(), getName(), SpecialPage::getTitleFor(), Xml::hidden(), Xml::inputLabel(), Xml::openElement(), Xml::submitButton(), and wfMsg().

WithoutInterwikiPage::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 53 of file SpecialWithoutinterwiki.php.

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

WithoutInterwikiPage::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 45 of file SpecialWithoutinterwiki.php.

WithoutInterwikiPage::isSyndicated (  ) 

Sometime we dont want to build rss / atom feeds.

Reimplemented from QueryPage.

Definition at line 49 of file SpecialWithoutinterwiki.php.

WithoutInterwikiPage::setPrefix ( prefix = ''  ) 

Definition at line 71 of file SpecialWithoutinterwiki.php.

References $prefix.

WithoutInterwikiPage::sortDescending (  ) 

Override to sort by increasing values.

Reimplemented from QueryPage.

Definition at line 41 of file SpecialWithoutinterwiki.php.


Member Data Documentation

WithoutInterwikiPage::$prefix = '' [private]

Definition at line 14 of file SpecialWithoutinterwiki.php.

Referenced by getPageHeader(), getSQL(), and setPrefix().


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

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