MediaWiki REL1_39
|
Class designed for counting of stats. More...
Public Member Functions | |
__construct ( $database=false) | |
articles () | |
Count pages in article space(s) | |
edits () | |
Count the total number of edits. | |
files () | |
Count total files. | |
pages () | |
Count total pages. | |
refresh () | |
Refresh site_stats. | |
users () | |
Count total users. | |
Static Public Member Functions | |
static | doAllAndCommit ( $database, array $options=[]) |
Do all updates and commit them. | |
static | doPlaceholderInit () |
Insert a dummy row with all zeroes if no row is present. | |
Class designed for counting of stats.
Definition at line 28 of file SiteStatsInit.php.
SiteStatsInit::__construct | ( | $database = false | ) |
bool | IDatabase | $database |
|
Definition at line 47 of file SiteStatsInit.php.
References DB_PRIMARY, DB_REPLICA, and getDB().
SiteStatsInit::articles | ( | ) |
Count pages in article space(s)
Definition at line 72 of file SiteStatsInit.php.
References articles().
Referenced by articles(), and refresh().
|
static |
Do all updates and commit them.
More or less a replacement for the original initStats, but without output.
IDatabase | bool | $database |
|
array | $options | Array of options, may contain the following values
|
Definition at line 136 of file SiteStatsInit.php.
References DB_PRIMARY.
Referenced by DatabaseUpdater\checkStats(), and SiteStats\loadAndLazyInit().
|
static |
Insert a dummy row with all zeroes if no row is present.
Definition at line 159 of file SiteStatsInit.php.
References DB_PRIMARY, getDB(), and SiteStats\selectFields().
Referenced by SiteStats\loadAndLazyInit().
SiteStatsInit::edits | ( | ) |
Count the total number of edits.
Definition at line 61 of file SiteStatsInit.php.
References edits().
SiteStatsInit::files | ( | ) |
SiteStatsInit::pages | ( | ) |
SiteStatsInit::refresh | ( | ) |
Refresh site_stats.
Definition at line 185 of file SiteStatsInit.php.
References articles(), DB_PRIMARY, edits(), files(), getDB(), pages(), and users().
SiteStatsInit::users | ( | ) |