MediaWiki
1.28.0
|
Class designed for counting of stats. More...
Public Member Functions | |
__construct ($database=false) | |
Constructor. More... | |
articles () | |
Count pages in article space(s) More... | |
edits () | |
Count the total number of edits. More... | |
files () | |
Count total files. More... | |
pages () | |
Count total pages. More... | |
refresh () | |
Refresh site_stats. More... | |
users () | |
Count total users. More... | |
Static Public Member Functions | |
static | doAllAndCommit ($database, array $options=[]) |
Do all updates and commit them. More... | |
Public Attributes | |
$mArticles = null | |
$mFiles = null | |
$mPages = null | |
Private Attributes | |
$db | |
$mEdits = null | |
$mUsers = null | |
Class designed for counting of stats.
Definition at line 278 of file SiteStats.php.
SiteStatsInit::__construct | ( | $database = false | ) |
Constructor.
bool | IDatabase | $database |
Definition at line 293 of file SiteStats.php.
References DB_MASTER, DB_REPLICA, and wfGetDB().
SiteStatsInit::articles | ( | ) |
Count pages in article space(s)
Definition at line 317 of file SiteStats.php.
References $mArticles, $tables, MWNamespace\getContentNamespaces(), and global.
Referenced by 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 380 of file SiteStats.php.
References $options, SiteStatsUpdate\cacheUpdate(), DB_MASTER, false, and wfGetDB().
Referenced by DatabaseUpdater\checkStats(), and SiteStats\loadAndLazyInit().
SiteStatsInit::edits | ( | ) |
Count the total number of edits.
Definition at line 307 of file SiteStats.php.
References $mEdits.
Referenced by refresh().
SiteStatsInit::files | ( | ) |
Count total files.
Definition at line 365 of file SiteStats.php.
References $mFiles.
Referenced by refresh().
SiteStatsInit::pages | ( | ) |
Count total pages.
Definition at line 347 of file SiteStats.php.
References $mPages.
Referenced by refresh().
SiteStatsInit::refresh | ( | ) |
Refresh site_stats.
Definition at line 403 of file SiteStats.php.
References $mArticles, $mEdits, $mFiles, $mPages, $mUsers, articles(), DB_MASTER, edits(), files(), pages(), users(), and wfGetDB().
SiteStatsInit::users | ( | ) |
Count total users.
Definition at line 356 of file SiteStats.php.
References $mUsers.
Referenced by refresh().
|
private |
Definition at line 281 of file SiteStats.php.
SiteStatsInit::$mArticles = null |
Definition at line 284 of file SiteStats.php.
Referenced by articles(), and refresh().
|
private |
Definition at line 284 of file SiteStats.php.
SiteStatsInit::$mFiles = null |
Definition at line 285 of file SiteStats.php.
SiteStatsInit::$mPages = null |
Definition at line 284 of file SiteStats.php.
|
private |
Definition at line 285 of file SiteStats.php.