MediaWiki REL1_39
SiteStats Class Reference

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

Static Public Member Functions

static activeUsers ()
 
static articles ()
 
static edits ()
 
static images ()
 
static jobs ()
 Total number of jobs in the job queue.
 
static numberingroup ( $group)
 Find the number of users in a given user group.
 
static pages ()
 
static pagesInNs ( $ns)
 
static selectFields ()
 
static unload ()
 Trigger a reload next time a field is accessed.
 
static users ()
 

Static Protected Member Functions

static load ()
 
static loadAndLazyInit ()
 

Detailed Description

Static accessor class for site_stats and related things.

Definition at line 32 of file SiteStats.php.

Member Function Documentation

◆ activeUsers()

static SiteStats::activeUsers ( )
static

◆ articles()

static SiteStats::articles ( )
static

◆ edits()

static SiteStats::edits ( )
static

◆ images()

static SiteStats::images ( )
static

◆ jobs()

static SiteStats::jobs ( )
static

Total number of jobs in the job queue.

Returns
int

Definition at line 181 of file SiteStats.php.

References $cache.

Referenced by ApiQuerySiteinfo\appendStatistics().

◆ load()

static SiteStats::load ( )
staticprotected

Definition at line 43 of file SiteStats.php.

References loadAndLazyInit().

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

◆ loadAndLazyInit()

static SiteStats::loadAndLazyInit ( )
staticprotected
Returns
stdClass

Definition at line 52 of file SiteStats.php.

References $dbr, DB_PRIMARY, DB_REPLICA, SiteStatsInit\doAllAndCommit(), SiteStatsInit\doPlaceholderInit(), and wfDebug().

Referenced by load().

◆ numberingroup()

static SiteStats::numberingroup (   $group)
static

Find the number of users in a given user group.

Parameters
string$groupName of group
Returns
int

Definition at line 151 of file SiteStats.php.

References $cache, $dbr, and DB_REPLICA.

Referenced by ApiQuerySiteinfo\appendStatistics(), ApiQuerySiteinfo\appendUserGroups(), CoreMagicVariables\expand(), CoreParserFunctions\numberingroup(), and CoreParserFunctions\numberofadmins().

◆ pages()

static SiteStats::pages ( )
static

◆ pagesInNs()

static SiteStats::pagesInNs (   $ns)
static
Parameters
int$ns
Returns
int

Definition at line 203 of file SiteStats.php.

References $cache, $dbr, and DB_REPLICA.

Referenced by CoreParserFunctions\pagesinnamespace().

◆ selectFields()

static SiteStats::selectFields ( )
static
Returns
array

Definition at line 228 of file SiteStats.php.

Referenced by SiteStatsInit\doPlaceholderInit().

◆ unload()

static SiteStats::unload ( )
static

Trigger a reload next time a field is accessed.

Definition at line 39 of file SiteStats.php.

Referenced by SiteStatsUpdate\cacheUpdate(), and SiteStatsUpdate\doUpdate().

◆ users()


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