MediaWiki REL1_30
|
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. | |
Private Attributes | |
$db | |
$mArticles = null | |
$mEdits = null | |
$mFiles = null | |
$mPages = null | |
$mUsers = null | |
Class designed for counting of stats.
Definition at line 286 of file SiteStats.php.
SiteStatsInit::__construct | ( | $database = false | ) |
bool | IDatabase | $database |
|
Definition at line 300 of file SiteStats.php.
References DB_MASTER, DB_REPLICA, and wfGetDB().
SiteStatsInit::articles | ( | ) |
Count pages in article space(s)
Definition at line 324 of file SiteStats.php.
References $mArticles, $tables, and $wgArticleCountMethod.
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 387 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 314 of file SiteStats.php.
References $mEdits.
Referenced by refresh().
SiteStatsInit::files | ( | ) |
Count total files.
Definition at line 372 of file SiteStats.php.
References $mFiles.
Referenced by refresh().
SiteStatsInit::pages | ( | ) |
Count total pages.
Definition at line 354 of file SiteStats.php.
References $mPages.
Referenced by refresh().
SiteStatsInit::refresh | ( | ) |
Refresh site_stats.
Definition at line 410 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 363 of file SiteStats.php.
References $mUsers.
Referenced by refresh().
|
private |
Definition at line 289 of file SiteStats.php.
|
private |
Definition at line 292 of file SiteStats.php.
Referenced by articles(), and refresh().
|
private |
Definition at line 292 of file SiteStats.php.
|
private |
Definition at line 293 of file SiteStats.php.
|
private |
Definition at line 292 of file SiteStats.php.
|
private |
Definition at line 293 of file SiteStats.php.