MediaWiki
REL1_23
|
Class designed for counting of stats. More...
Public Member Functions | |
__construct ($database=false) | |
Constructor. | |
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. | |
views () | |
Count views. | |
Static Public Member Functions | |
static | doAllAndCommit ($database, array $options=array()) |
Do all updates and commit them. | |
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.
References wfGetDB().
Count pages in article space(s)
Definition at line 294 of file SiteStats.php.
References $conds, $tables, array(), MWNamespace\getContentNamespaces(), and global.
Referenced by refresh().
static SiteStatsInit::doAllAndCommit | ( | $ | database, |
array $ | options = array() |
||
) | [static] |
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(), and wfGetDB().
Referenced by SiteStats\loadAndLazyInit().
Count the total number of edits.
Definition at line 284 of file SiteStats.php.
Referenced by refresh().
Count total files.
Definition at line 351 of file SiteStats.php.
Referenced by refresh().
Count total pages.
Definition at line 324 of file SiteStats.php.
Referenced by refresh().
Refresh site_stats.
If you want ss_total_views to be updated, be sure to call views() first.
Definition at line 396 of file SiteStats.php.
References array(), articles(), edits(), files(), pages(), users(), and wfGetDB().
Count total users.
Definition at line 333 of file SiteStats.php.
Referenced by refresh().
SiteStatsInit::$db [private] |
Definition at line 260 of file SiteStats.php.
SiteStatsInit::$mArticles = null |
Definition at line 263 of file SiteStats.php.
SiteStatsInit::$mEdits = null [private] |
Definition at line 263 of file SiteStats.php.
SiteStatsInit::$mFiles = null |
Definition at line 264 of file SiteStats.php.
SiteStatsInit::$mPages = null |
Definition at line 263 of file SiteStats.php.
SiteStatsInit::$mUsers = null [private] |
Definition at line 264 of file SiteStats.php.
SiteStatsInit::$mViews = null |
Definition at line 264 of file SiteStats.php.