MediaWiki
1.33.0
|
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. More... | |
static | numberingroup ( $group) |
Find the number of users in a given user group. More... | |
static | pages () |
static | pagesInNs ( $ns) |
static | selectFields () |
static | unload () |
Trigger a reload next time a field is accessed. More... | |
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? More... | |
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 SpecialStatistics\execute(), CoreParserFunctions\numberofactiveusers(), and ApiQuerySiteinfoTest\testStatistics().
|
static |
Definition at line 103 of file SiteStats.php.
References load().
Referenced by SpecialStatistics\execute(), CoreParserFunctions\numberofarticles(), SiteStatsUpdateTest\testDoUpdate(), and ApiQuerySiteinfoTest\testStatistics().
|
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 SpecialStatistics\execute(), CoreParserFunctions\numberofedits(), SiteStatsUpdateTest\testDoUpdate(), ApiQuerySiteinfoTest\testStatistics(), 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 SpecialStatistics\execute(), CoreParserFunctions\numberoffiles(), SiteStatsUpdateTest\testDoUpdate(), and ApiQuerySiteinfoTest\testStatistics().
|
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.
|
static |
Total number of jobs in the job queue.
Definition at line 179 of file SiteStats.php.
References $cache, $e, array(), and JobQueueGroup\singleton().
Referenced by SiteStatsTest\testJobsCountGetCached(), and ApiQuerySiteinfoTest\testStatistics().
|
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, $fname, array(), DB_REPLICA, getLB(), and use.
Referenced by SpecialStatistics\getGroupStats(), CoreParserFunctions\numberingroup(), CoreParserFunctions\numberofadmins(), ApiQuerySiteinfoTest\testStatistics(), and ApiQuerySiteinfoTest\testUserGroups().
|
static |
Definition at line 112 of file SiteStats.php.
References load().
Referenced by SpecialStatistics\execute(), CoreParserFunctions\numberofpages(), SiteStatsUpdateTest\testDoUpdate(), ApiQuerySiteinfoTest\testStatistics(), and wfQueriesMustScale().
|
static |
int | $ns |
Definition at line 201 of file SiteStats.php.
References $cache, $dbr, $fname, array(), DB_REPLICA, getLB(), and use.
Referenced by CoreParserFunctions\pagesinnamespace().
|
staticprivate |
stdClass | bool | $row |
Definition at line 285 of file SiteStats.php.
References $row, $value, array(), and as.
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(), SiteStatsUpdateTest\testDoUpdate(), and SiteStatsUpdate\tryDBUpdateInternal().
|
static |
Definition at line 121 of file SiteStats.php.
References load().
Referenced by SpecialStatistics\execute(), CoreParserFunctions\numberofusers(), SiteStatsUpdateTest\testDoUpdate(), ApiQuerySiteinfoTest\testStatistics(), ApiQuerySiteinfoTest\testUserGroups(), and wfQueriesMustScale().
|
staticprivate |
Definition at line 33 of file SiteStats.php.
Referenced by isRowSane(), loadAndLazyInit(), and salvageInsaneRow().