MediaWiki REL1_34
|
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 () |
Static Private Member Functions | |
static | doLoadFromDB (IDatabase $db) |
static | getLB () |
static | isRowSane ( $row) |
Is the provided row of site stats sane, or should it be regenerated? | |
static | salvageInsaneRow ( $row) |
Static Private Attributes | |
static stdClass | $row |
Static accessor class for site_stats and related things.
Definition at line 31 of file SiteStats.php.
|
static |
Definition at line 130 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\expandMagicVariable(), CoreParserFunctions\numberofactiveusers(), and Scribunto_LuaSiteLibrary\register().
|
static |
Definition at line 103 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\expandMagicVariable(), CoreParserFunctions\numberofarticles(), and Scribunto_LuaSiteLibrary\register().
|
staticprivate |
IDatabase | $db |
Definition at line 241 of file SiteStats.php.
References Wikimedia\Rdbms\IDatabase\selectRow().
Referenced by loadAndLazyInit().
|
static |
Definition at line 94 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\expandMagicVariable(), CoreParserFunctions\numberofedits(), Scribunto_LuaSiteLibrary\register(), and wfQueriesMustScale().
|
staticprivate |
Definition at line 300 of file SiteStats.php.
Referenced by loadAndLazyInit(), numberingroup(), and pagesInNs().
|
static |
Definition at line 139 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\expandMagicVariable(), CoreParserFunctions\numberoffiles(), and Scribunto_LuaSiteLibrary\register().
|
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 258 of file SiteStats.php.
References $row.
|
static |
Total number of jobs in the job queue.
Definition at line 179 of file SiteStats.php.
References $cache.
Referenced by ApiQuerySiteinfo\appendStatistics().
|
staticprotected |
Definition at line 42 of file SiteStats.php.
References loadAndLazyInit().
Referenced by activeUsers(), articles(), edits(), images(), pages(), and users().
|
staticprotected |
Definition at line 51 of file SiteStats.php.
References $dbr, $row, DB_MASTER, DB_REPLICA, SiteStatsInit\doAllAndCommit(), doLoadFromDB(), SiteStatsInit\doPlaceholderInit(), getLB(), salvageInsaneRow(), and wfDebug().
Referenced by load().
|
static |
Find the number of users in a given user group.
string | $group | Name of group |
Definition at line 150 of file SiteStats.php.
References $cache, $dbr, DB_REPLICA, and getLB().
Referenced by ApiQuerySiteinfo\appendStatistics(), ApiQuerySiteinfo\appendUserGroups(), Parser\expandMagicVariable(), SpecialStatistics\getGroupStats(), CoreParserFunctions\numberingroup(), CoreParserFunctions\numberofadmins(), Scribunto_LuaSiteLibrary\register(), and Scribunto_LuaSiteLibrary\usersInGroup().
|
static |
Definition at line 112 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\expandMagicVariable(), CoreParserFunctions\numberofpages(), Scribunto_LuaSiteLibrary\register(), and wfQueriesMustScale().
|
static |
int | $ns |
Definition at line 201 of file SiteStats.php.
References $cache, $dbr, DB_REPLICA, and getLB().
Referenced by Scribunto_LuaSiteLibrary\pagesInNamespace(), and CoreParserFunctions\pagesinnamespace().
|
staticprivate |
stdClass | bool | $row |
Definition at line 285 of file SiteStats.php.
References $row.
Referenced by loadAndLazyInit().
|
static |
Definition at line 226 of file SiteStats.php.
Referenced by SiteStatsInit\doPlaceholderInit().
|
static |
Trigger a reload next time a field is accessed.
Definition at line 38 of file SiteStats.php.
Referenced by SiteStatsUpdate\cacheUpdate(), and SiteStatsUpdate\doUpdate().
|
static |
Definition at line 121 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), ApiQuerySiteinfo\appendUserGroups(), SpecialStatistics\execute(), Parser\expandMagicVariable(), CoreParserFunctions\numberofusers(), Scribunto_LuaSiteLibrary\register(), and wfQueriesMustScale().
|
staticprivate |
Definition at line 33 of file SiteStats.php.
Referenced by isRowSane(), loadAndLazyInit(), and salvageInsaneRow().