SiteStats Class Reference

Static accessor class for site_stats and related things. More...

List of all members.

Static Public Member Functions

static recache ()
static load ($recache=false)
static loadAndLazyInit ()
static doLoad ($db)
static views ()
static edits ()
static articles ()
static pages ()
static users ()
static activeUsers ()
static images ()
static admins ()
static numberingroup ($group)
 Find the number of users in a given user group.
static jobs ()
static pagesInNs ($ns)

Static Public Attributes

static $row
static $loaded = false
static $admins
static $jobs
static $pageCount = array()
static $groupMemberCounts = array()

Static Private Member Functions

static isSane ($row)
 Is the provided row of site stats sane, or should it be regenerated?


Detailed Description

Static accessor class for site_stats and related things.

Definition at line 6 of file SiteStats.php.


Member Function Documentation

static SiteStats::activeUsers (  )  [static]

static SiteStats::admins (  )  [static]

Deprecated:
Use self::numberingroup('sysop') instead

Definition at line 110 of file SiteStats.php.

References numberingroup(), and wfDeprecated().

static SiteStats::articles (  )  [static]

static SiteStats::doLoad ( db  )  [static]

Definition at line 68 of file SiteStats.php.

References $db.

Referenced by loadAndLazyInit().

static SiteStats::edits (  )  [static]

static SiteStats::images (  )  [static]

static SiteStats::isSane ( row  )  [static, private]

Is the provided row of site stats sane, or should it be regenerated?

Definition at line 159 of file SiteStats.php.

References $row.

static SiteStats::jobs (  )  [static]

Definition at line 136 of file SiteStats.php.

References $dbr, and wfGetDB().

Referenced by ApiQuerySiteinfo::appendStatistics(), and SpecialStatistics::execute().

static SiteStats::load ( recache = false  )  [static]

Definition at line 16 of file SiteStats.php.

References $dbr, $row, $u, loadAndLazyInit(), and wfGetDB().

Referenced by activeUsers(), articles(), edits(), images(), pages(), recache(), users(), and views().

static SiteStats::loadAndLazyInit (  )  [static]

Definition at line 35 of file SiteStats.php.

References $IP, $row, doLoad(), wfDebug(), wfGetDB(), and wfInitStats().

Referenced by load().

static SiteStats::numberingroup ( group  )  [static]

Find the number of users in a given user group.

Parameters:
string $group Name of group
Returns:
int

Definition at line 120 of file SiteStats.php.

References $dbr, $key, $wgMemc, wfGetDB(), and wfMemcKey().

Referenced by admins(), ApiQuerySiteinfo::appendStatistics(), SpecialStatistics::execute(), SpecialStatistics::getGroupStats(), Parser::getVariableValue(), CoreParserFunctions::numberingroup(), and CoreParserFunctions::numberofadmins().

static SiteStats::pages (  )  [static]

static SiteStats::pagesInNs ( ns  )  [static]

Definition at line 148 of file SiteStats.php.

References $dbr, $ns, $pageCount, wfGetDB(), wfProfileIn(), and wfProfileOut().

Referenced by CoreParserFunctions::pagesinnamespace().

static SiteStats::recache (  )  [static]

Definition at line 12 of file SiteStats.php.

References load().

static SiteStats::users (  )  [static]

static SiteStats::views (  )  [static]


Member Data Documentation

SiteStats::$admins [static]

Definition at line 8 of file SiteStats.php.

SiteStats::$groupMemberCounts = array() [static]

Definition at line 10 of file SiteStats.php.

SiteStats::$jobs [static]

Definition at line 8 of file SiteStats.php.

SiteStats::$loaded = false [static]

Definition at line 7 of file SiteStats.php.

SiteStats::$pageCount = array() [static]

Definition at line 9 of file SiteStats.php.

Referenced by pagesInNs().

SiteStats::$row [static]

Definition at line 7 of file SiteStats.php.

Referenced by isSane(), and loadAndLazyInit().


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

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