MediaWiki REL1_33
|
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\getVariableValue(), CoreParserFunctions\numberofactiveusers(), and ApiQuerySiteinfoTest\testStatistics().
|
static |
Definition at line 103 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), 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 ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), 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 ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), 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.
References $row.
|
static |
Total number of jobs in the job queue.
Definition at line 179 of file SiteStats.php.
References $cache, $e, and(), array(), and function.
Referenced by ApiQuerySiteinfo\appendStatistics(), 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, and(), array(), DB_REPLICA, function, and getLB().
Referenced by ApiQuerySiteinfo\appendStatistics(), ApiQuerySiteinfo\appendUserGroups(), SpecialStatistics\getGroupStats(), Parser\getVariableValue(), CoreParserFunctions\numberingroup(), CoreParserFunctions\numberofadmins(), ApiQuerySiteinfoTest\testStatistics(), and ApiQuerySiteinfoTest\testUserGroups().
|
static |
Definition at line 112 of file SiteStats.php.
References load().
Referenced by ApiQuerySiteinfo\appendStatistics(), SpecialStatistics\execute(), Parser\getVariableValue(), CoreParserFunctions\numberofpages(), SiteStatsUpdateTest\testDoUpdate(), ApiQuerySiteinfoTest\testStatistics(), and wfQueriesMustScale().
|
static |
int | $ns |
Definition at line 201 of file SiteStats.php.
References $cache, $dbr, $fname, and(), array(), DB_REPLICA, function, and getLB().
Referenced by CoreParserFunctions\pagesinnamespace().
|
staticprivate |
stdClass | bool | $row |
Definition at line 285 of file SiteStats.php.
References $row, $value, and(), and array().
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 ApiQuerySiteinfo\appendStatistics(), ApiQuerySiteinfo\appendUserGroups(), SpecialStatistics\execute(), Parser\getVariableValue(), 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().