MediaWiki
1.23.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... | |
users () | |
Count total users. More... | |
views () | |
Count views. More... | |
Static Public Member Functions | |
static | doAllAndCommit ( $database, array $options=array()) |
Do all updates and commit them. More... | |
Public Attributes | |
$mArticles | |
$mFiles = 0 | |
$mPages | |
$mUsers | |
$mViews | |
Protected Member Functions | |
refresh () | |
Refresh site_stats. More... | |
Private Attributes | |
$db | |
$mEdits | |
Class designed for counting of stats.
Definition at line 257 of file SiteStats.php.
SiteStatsInit::__construct | ( | $database = false | ) |
Constructor.
$database | Boolean or DatabaseBase:
|
Definition at line 271 of file SiteStats.php.
SiteStatsInit::articles | ( | ) |
Count pages in article space(s)
Definition at line 293 of file SiteStats.php.
References $mArticles, $tables, array(), MWNamespace\getContentNamespaces(), and global.
Do all updates and commit them.
More or less a replacement for the original initStats, but without output.
$database | DatabaseBase|bool
| |
array | $options | of options, may contain the following values
|
Definition at line 366 of file SiteStats.php.
References $options, array(), SiteStatsUpdate\cacheUpdate(), DB_MASTER, and wfGetDB().
Referenced by DatabaseUpdater\checkStats(), and SiteStats\loadAndLazyInit().
SiteStatsInit::edits | ( | ) |
Count the total number of edits.
Definition at line 283 of file SiteStats.php.
References $mEdits.
SiteStatsInit::files | ( | ) |
SiteStatsInit::pages | ( | ) |
|
protected |
Refresh site_stats.
Definition at line 394 of file SiteStats.php.
SiteStatsInit::users | ( | ) |
SiteStatsInit::views | ( | ) |
|
private |
Definition at line 260 of file SiteStats.php.
SiteStatsInit::$mArticles |
Definition at line 263 of file SiteStats.php.
Referenced by articles().
|
private |
Definition at line 263 of file SiteStats.php.
Referenced by edits().
SiteStatsInit::$mFiles = 0 |
Definition at line 263 of file SiteStats.php.
Referenced by files().
SiteStatsInit::$mPages |
Definition at line 263 of file SiteStats.php.
Referenced by pages().
SiteStatsInit::$mUsers |
Definition at line 263 of file SiteStats.php.
Referenced by users().
SiteStatsInit::$mViews |
Definition at line 263 of file SiteStats.php.
Referenced by views().