MediaWiki
1.23.2
|
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... | |
views () | |
Count views. More... | |
Static Public Member Functions | |
static | doAllAndCommit ( $database, array $options=array()) |
Do all updates and commit them. More... | |
Public Attributes | |
$mArticles = null | |
$mFiles = null | |
$mPages = null | |
$mViews = null | |
Private Attributes | |
$db | |
$mEdits = null | |
$mUsers = null | |
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 272 of file SiteStats.php.
SiteStatsInit::articles | ( | ) |
Count pages in article space(s)
Definition at line 294 of file SiteStats.php.
References $mArticles, $tables, array(), MWNamespace\getContentNamespaces(), and global.
Referenced by refresh().
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 367 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 284 of file SiteStats.php.
References $mEdits.
Referenced by refresh().
SiteStatsInit::files | ( | ) |
Count total files.
Definition at line 351 of file SiteStats.php.
References $mFiles.
Referenced by refresh().
SiteStatsInit::pages | ( | ) |
Count total pages.
Definition at line 324 of file SiteStats.php.
References $mPages.
Referenced by refresh().
SiteStatsInit::refresh | ( | ) |
SiteStatsInit::users | ( | ) |
Count total users.
Definition at line 333 of file SiteStats.php.
References $mUsers.
Referenced by refresh().
SiteStatsInit::views | ( | ) |
|
private |
Definition at line 260 of file SiteStats.php.
SiteStatsInit::$mArticles = null |
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 = null |
Definition at line 264 of file SiteStats.php.
Referenced by files().
SiteStatsInit::$mPages = null |
Definition at line 263 of file SiteStats.php.
Referenced by pages().
|
private |
Definition at line 264 of file SiteStats.php.
Referenced by users().
SiteStatsInit::$mViews = null |
Definition at line 264 of file SiteStats.php.
Referenced by views().