MediaWiki
master
|
Static accessor class for site_stats and related things. More...
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. More... | |
static | pages () |
static | pagesInNs ($ns) |
static | recache () |
static | users () |
static | views () |
Return the total number of page views. More... | |
Static Private Member Functions | |
static | isSane ($row) |
Is the provided row of site stats sane, or should it be regenerated? More... | |
Static Private Attributes | |
static int | $jobs |
static bool | $loaded = false |
static int[] | $pageCount = [] |
static bool ResultWrapper | $row |
Static accessor class for site_stats and related things.
Definition at line 26 of file SiteStats.php.
|
static |
Definition at line 161 of file SiteStats.php.
References load.
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), and CoreParserFunctions\numberofactiveusers().
|
static |
Definition at line 137 of file SiteStats.php.
References load.
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), and CoreParserFunctions\numberofarticles().
|
static |
|
static |
Definition at line 129 of file SiteStats.php.
References load.
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), CoreParserFunctions\numberofedits(), and wfQueriesMustScale().
|
static |
Definition at line 169 of file SiteStats.php.
References load.
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), and CoreParserFunctions\numberoffiles().
|
staticprivate |
Is the provided row of site stats sane, or should it be regenerated?
Checks only fields which are filled by SiteStatsInit::refresh.
bool | object | $row |
Definition at line 248 of file SiteStats.php.
|
static |
Definition at line 203 of file SiteStats.php.
References $e, and JobQueueGroup\singleton().
Referenced by ApiQuerySiteinfo\appendStatistics().
|
static |
bool | $recache |
Definition at line 46 of file SiteStats.php.
|
static |
Definition at line 67 of file SiteStats.php.
References $row, $wgMiserMode, DB_MASTER, DB_SLAVE, SiteStatsInit\doAllAndCommit(), global, wfDebug(), and wfGetDB().
|
static |
Find the number of users in a given user group.
string | $group | Name of group |
Definition at line 179 of file SiteStats.php.
References $cache, $dbr, array(), DB_SLAVE, DatabaseBase\getCacheSetOptions(), ObjectCache\getMainWANInstance(), use, wfGetDB(), and wfMemcKey().
Referenced by ApiQuerySiteinfo\appendStatistics(), ApiQuerySiteinfo\appendUserGroups(), SpecialStatistics\getGroupStats(), Parser\getVariableValue(), CoreParserFunctions\numberingroup(), and CoreParserFunctions\numberofadmins().
|
static |
Definition at line 145 of file SiteStats.php.
References load.
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), CoreParserFunctions\numberofpages(), and wfQueriesMustScale().
|
static |
int | $ns |
Definition at line 226 of file SiteStats.php.
References $dbr, DB_SLAVE, and wfGetDB().
Referenced by CoreParserFunctions\pagesinnamespace().
|
static |
Definition at line 39 of file SiteStats.php.
References load.
|
static |
Definition at line 153 of file SiteStats.php.
References load.
Referenced by ApiQuerySiteinfo\appendStatistics(), ApiQuerySiteinfo\appendUserGroups(), SpecialStatistics\execute(), Parser\getVariableValue(), CoreParserFunctions\numberofusers(), and wfQueriesMustScale().
|
static |
Return the total number of page views.
Except we don't track those anymore. Stop calling this function, it will be removed some time in the future. It's kept here simply to prevent fatal errors.
Definition at line 121 of file SiteStats.php.
References wfDeprecated().
|
staticprivate |
Definition at line 34 of file SiteStats.php.
|
staticprivate |
Definition at line 31 of file SiteStats.php.
|
staticprivate |
Definition at line 37 of file SiteStats.php.
|
staticprivate |
Definition at line 28 of file SiteStats.php.
Referenced by isSane(), and loadAndLazyInit().