WantedCategoriesPage Class Reference
[SpecialPage]

A querypage to list the most wanted categories - implements Special:Wantedcategories. More...

Inherits WantedQueryPage.

List of all members.

Public Member Functions

 getName ()
 Subclasses return their name here.
 getSQL ()
 Subclasses return an SQL query here.
 formatResult ($skin, $result)
 Format an individual result.


Detailed Description

A querypage to list the most wanted categories - implements Special:Wantedcategories.

Author:
Ævar Arnfjörð Bjarmason <avarab@gmail.com> Copyright © 2005, Ævar Arnfjörð Bjarmason http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later

Definition at line 16 of file SpecialWantedcategories.php.


Member Function Documentation

WantedCategoriesPage::formatResult ( skin,
result 
)

Format an individual result.

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

Reimplemented from WantedQueryPage.

Definition at line 40 of file SpecialWantedcategories.php.

References $result, $wgContLang, $wgLang, QueryPage::isCached(), Title::makeTitle(), wfMsgExt(), and wfSpecialList().

WantedCategoriesPage::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 18 of file SpecialWantedcategories.php.

Referenced by getSQL().

WantedCategoriesPage::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 22 of file SpecialWantedcategories.php.

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


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

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