MediaWiki  REL1_22
SiteStats Class Reference

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

List of all members.

Static Public Member Functions

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

Static Public Attributes

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

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 26 of file SiteStats.php.


Member Function Documentation

static SiteStats::activeUsers ( ) [static]
static SiteStats::articles ( ) [static]
static SiteStats::doLoad ( db) [static]
Parameters:
$dbDatabaseBase
Returns:
Bool|ResultWrapper

Definition at line 92 of file SiteStats.php.

References array().

Referenced by load(), and loadAndLazyInit().

static SiteStats::edits ( ) [static]
Returns:
int

Definition at line 116 of file SiteStats.php.

References load().

Referenced by ApiQuerySiteinfo\appendStatistics(), CoreParserFunctions\numberofedits(), and wfQueriesMustScale().

static SiteStats::images ( ) [static]
Returns:
int

Definition at line 156 of file SiteStats.php.

References load().

Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), and CoreParserFunctions\numberoffiles().

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

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

Parameters:
$row
Returns:
bool

Definition at line 228 of file SiteStats.php.

References $row, array(), and as.

static SiteStats::jobs ( ) [static]
Returns:
int

Definition at line 189 of file SiteStats.php.

References $dbr, $jobs, JobQueueGroup\singleton(), and wfGetDB().

Referenced by ApiQuerySiteinfo\appendStatistics().

static SiteStats::load ( recache = false) [static]
Parameters:
$recachebool

Definition at line 39 of file SiteStats.php.

References doLoad(), loadAndLazyInit(), and wfGetDB().

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

static SiteStats::loadAndLazyInit ( ) [static]
Returns:
Bool|ResultWrapper

Definition at line 60 of file SiteStats.php.

References $row, SiteStatsInit\doAllAndCommit(), doLoad(), wfDebug(), and wfGetDB().

Referenced by load().

static SiteStats::numberingroup ( group) [static]

Find the number of users in a given user group.

Parameters:
string$groupname of group
Returns:
Integer

Definition at line 166 of file SiteStats.php.

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

Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\getGroupStats(), CoreParserFunctions\numberingroup(), and CoreParserFunctions\numberofadmins().

static SiteStats::pages ( ) [static]
Returns:
int

Definition at line 132 of file SiteStats.php.

References load().

Referenced by ApiQuerySiteinfo\appendStatistics(), CoreParserFunctions\numberofpages(), and wfQueriesMustScale().

static SiteStats::pagesInNs ( ns) [static]
Parameters:
$nsint
Returns:
int

Definition at line 206 of file SiteStats.php.

References $dbr, array(), wfGetDB(), wfProfileIn(), and wfProfileOut().

Referenced by CoreParserFunctions\pagesinnamespace().

static SiteStats::recache ( ) [static]

Definition at line 32 of file SiteStats.php.

References load().

static SiteStats::views ( ) [static]
Returns:
int

Definition at line 108 of file SiteStats.php.

References load().

Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), and CoreParserFunctions\numberofviews().


Member Data Documentation

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

Definition at line 30 of file SiteStats.php.

SiteStats::$jobs [static]

Definition at line 28 of file SiteStats.php.

Referenced by jobs().

SiteStats::$loaded = false [static]

Definition at line 27 of file SiteStats.php.

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

Definition at line 29 of file SiteStats.php.

SiteStats::$row [static]

Definition at line 27 of file SiteStats.php.

Referenced by isSane(), and loadAndLazyInit().


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