MediaWiki  REL1_19
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 6 of file SiteStats.php.


Member Function Documentation

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

Definition at line 120 of file SiteStats.php.

References load().

Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), and CoreParserFunctions\numberofactiveusers().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 96 of file SiteStats.php.

References load().

Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), and CoreParserFunctions\numberofarticles().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 73 of file SiteStats.php.

Referenced by loadAndLazyInit().

Here is the caller graph for this function:

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

Definition at line 88 of file SiteStats.php.

References load().

Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), CoreParserFunctions\numberofedits(), and wfQueriesMustScale().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 128 of file SiteStats.php.

References load().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

References $row.

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

Definition at line 161 of file SiteStats.php.

References $dbr, $jobs, and wfGetDB().

Referenced by ApiQuerySiteinfo\appendStatistics().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 19 of file SiteStats.php.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 41 of file SiteStats.php.

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

Referenced by load().

Here is the call graph for this function:

Here is the caller graph for this function:

static SiteStats::numberingroup ( group) [static]

Find the number of users in a given user group.

Parameters:
$groupString: name of group
Returns:
Integer

Definition at line 138 of file SiteStats.php.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 104 of file SiteStats.php.

References load().

Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), CoreParserFunctions\numberofpages(), and wfQueriesMustScale().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 178 of file SiteStats.php.

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

Referenced by CoreParserFunctions\pagesinnamespace().

Here is the call graph for this function:

Here is the caller graph for this function:

static SiteStats::recache ( ) [static]

Definition at line 12 of file SiteStats.php.

References load().

Here is the call graph for this function:

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

Definition at line 112 of file SiteStats.php.

References load().

Referenced by ApiQuerySiteinfo\appendStatistics(), ApiQuerySiteinfo\appendUserGroups(), SpecialStatistics\execute(), Parser\getVariableValue(), CoreParserFunctions\numberofusers(), and wfQueriesMustScale().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 80 of file SiteStats.php.

References load().

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

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 10 of file SiteStats.php.

SiteStats::$jobs [static]

Definition at line 8 of file SiteStats.php.

Referenced by jobs().

SiteStats::$loaded = false [static]

Definition at line 7 of file SiteStats.php.

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

Definition at line 9 of file SiteStats.php.

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: