ArticleCounter Class Reference

List of all members.

Public Member Functions

 ArticleCounter ()
 makeNsSet ()
 Produce a comma-delimited set of namespaces Includes paranoia.
 makeSql ()
 Produce SQL for the query.
 count ()
 Count the number of valid content pages in the wiki.

Public Attributes

 $dbr
 $namespaces


Detailed Description

Definition at line 10 of file updateArticleCount.inc.php.


Member Function Documentation

ArticleCounter::ArticleCounter (  ) 

Definition at line 15 of file updateArticleCount.inc.php.

References $wgContentNamespaces, and wfGetDB().

ArticleCounter::count (  ) 

Count the number of valid content pages in the wiki.

Returns:
mixed Integer, or false if there's a problem

Definition at line 52 of file updateArticleCount.inc.php.

References $res, $row, and makeSql().

ArticleCounter::makeNsSet (  ) 

Produce a comma-delimited set of namespaces Includes paranoia.

Returns:
string

Definition at line 27 of file updateArticleCount.inc.php.

References $namespaces.

Referenced by makeSql().

ArticleCounter::makeSql (  ) 

Produce SQL for the query.

Returns:
string

Definition at line 38 of file updateArticleCount.inc.php.

References $page, and makeNsSet().

Referenced by count().


Member Data Documentation

ArticleCounter::$dbr

Definition at line 12 of file updateArticleCount.inc.php.

ArticleCounter::$namespaces

Definition at line 13 of file updateArticleCount.inc.php.

Referenced by makeNsSet().


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