MediaWiki master
MediaWiki\SiteStats\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 36 of file SiteStats.php.

Member Function Documentation

◆ activeUsers()

static MediaWiki\SiteStats\SiteStats::activeUsers ( )
static
Returns
int

Definition at line 129 of file SiteStats.php.

References MediaWiki\SiteStats\SiteStats\load().

Referenced by MediaWiki\Api\ApiQuerySiteinfo\appendStatistics().

◆ articles()

static MediaWiki\SiteStats\SiteStats::articles ( )
static
Returns
int

Definition at line 102 of file SiteStats.php.

References MediaWiki\SiteStats\SiteStats\load().

Referenced by MediaWiki\Api\ApiQuerySiteinfo\appendStatistics().

◆ edits()

static MediaWiki\SiteStats\SiteStats::edits ( )
static
Returns
int

Definition at line 93 of file SiteStats.php.

References MediaWiki\SiteStats\SiteStats\load().

Referenced by MediaWiki\Api\ApiQuerySiteinfo\appendStatistics().

◆ images()

static MediaWiki\SiteStats\SiteStats::images ( )
static
Returns
int

Definition at line 138 of file SiteStats.php.

References MediaWiki\SiteStats\SiteStats\load().

Referenced by MediaWiki\Api\ApiQuerySiteinfo\appendStatistics().

◆ jobs()

static MediaWiki\SiteStats\SiteStats::jobs ( )
static

Total number of jobs in the job queue.

Returns
int

Definition at line 179 of file SiteStats.php.

References MediaWiki\MediaWikiServices\getInstance().

Referenced by MediaWiki\Api\ApiQuerySiteinfo\appendStatistics().

◆ load()

◆ loadAndLazyInit()

◆ numberingroup()

static MediaWiki\SiteStats\SiteStats::numberingroup ( $group)
static

Find the number of users in a given user group.

Parameters
string$groupName of group
Returns
int

Definition at line 149 of file SiteStats.php.

References DB_REPLICA, Wikimedia\Rdbms\Database\getCacheSetOptions(), and MediaWiki\MediaWikiServices\getInstance().

Referenced by MediaWiki\Api\ApiQuerySiteinfo\appendStatistics(), and MediaWiki\Api\ApiQuerySiteinfo\appendUserGroups().

◆ pages()

static MediaWiki\SiteStats\SiteStats::pages ( )
static
Returns
int

Definition at line 111 of file SiteStats.php.

References MediaWiki\SiteStats\SiteStats\load().

Referenced by MediaWiki\Api\ApiQuerySiteinfo\appendStatistics().

◆ pagesInNs()

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

Definition at line 201 of file SiteStats.php.

References DB_REPLICA, Wikimedia\Rdbms\Database\getCacheSetOptions(), and MediaWiki\MediaWikiServices\getInstance().

◆ selectFields()

static MediaWiki\SiteStats\SiteStats::selectFields ( )
static
Returns
array

Definition at line 225 of file SiteStats.php.

Referenced by MediaWiki\SiteStats\SiteStatsInit\doPlaceholderInit().

◆ unload()

static MediaWiki\SiteStats\SiteStats::unload ( )
static

Trigger a reload next time a field is accessed.

Definition at line 43 of file SiteStats.php.

◆ users()

static MediaWiki\SiteStats\SiteStats::users ( )
static

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