MediaWiki
1.30.0
|
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 () |
Total number of jobs in the job queue. More... | |
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 | unload () |
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 bool | $loaded = false |
static int[] | $pageCount = [] |
static bool stdClass | $row |
Static accessor class for site_stats and related things.
Definition at line 30 of file SiteStats.php.
|
static |
Definition at line 170 of file SiteStats.php.
References load().
Referenced by SpecialStatistics\execute(), and CoreParserFunctions\numberofactiveusers().
|
static |
Definition at line 146 of file SiteStats.php.
References load().
Referenced by SpecialStatistics\execute(), and CoreParserFunctions\numberofarticles().
|
static |
IDatabase | $db |
Definition at line 110 of file SiteStats.php.
Referenced by load(), and loadAndLazyInit().
|
static |
Definition at line 138 of file SiteStats.php.
References load().
Referenced by SpecialStatistics\execute(), and CoreParserFunctions\numberofedits().
|
static |
Definition at line 178 of file SiteStats.php.
References load().
Referenced by SpecialStatistics\execute(), 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 260 of file SiteStats.php.
|
static |
Total number of jobs in the job queue.
Definition at line 216 of file SiteStats.php.
References $cache, $e, array(), and JobQueueGroup\singleton().
Referenced by SiteStatsTest\testJobsCountGetCached().
|
static |
bool | $recache |
Definition at line 51 of file SiteStats.php.
References DB_REPLICA, doLoad(), loadAndLazyInit(), and wfGetDB().
Referenced by activeUsers(), articles(), edits(), images(), pages(), recache(), and users().
|
static |
Definition at line 72 of file SiteStats.php.
References $row, $wgMiserMode, DB_MASTER, DB_REPLICA, SiteStatsInit\doAllAndCommit(), doLoad(), global, wfDebug(), and wfGetDB().
Referenced by load().
|
static |
Find the number of users in a given user group.
string | $group | Name of group |
Definition at line 188 of file SiteStats.php.
References $cache, $dbr, array(), DB_REPLICA, use, and wfGetDB().
Referenced by SpecialStatistics\getGroupStats(), CoreParserFunctions\numberingroup(), and CoreParserFunctions\numberofadmins().
|
static |
Definition at line 154 of file SiteStats.php.
References load().
Referenced by SpecialStatistics\execute(), and CoreParserFunctions\numberofpages().
|
static |
int | $ns |
Definition at line 238 of file SiteStats.php.
References $dbr, DB_REPLICA, and wfGetDB().
Referenced by CoreParserFunctions\pagesinnamespace().
|
static |
Definition at line 44 of file SiteStats.php.
References load().
|
static |
Definition at line 40 of file SiteStats.php.
Referenced by SiteStatsUpdate\cacheUpdate(), and SiteStatsUpdate\tryDBUpdateInternal().
|
static |
Definition at line 162 of file SiteStats.php.
References load().
Referenced by SpecialStatistics\execute(), and CoreParserFunctions\numberofusers().
|
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 130 of file SiteStats.php.
References wfDeprecated().
|
staticprivate |
Definition at line 35 of file SiteStats.php.
|
staticprivate |
Definition at line 38 of file SiteStats.php.
|
staticprivate |
Definition at line 32 of file SiteStats.php.
Referenced by isSane(), and loadAndLazyInit().