MediaWiki
REL1_24
|
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 270 of file SiteStats.php.
SiteStatsInit::__construct | ( | $ | database = false | ) |
Constructor.
bool | DatabaseBase | $database |
|
Definition at line 285 of file SiteStats.php.
References wfGetDB().
Count pages in article space(s)
Definition at line 307 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.
DatabaseBase | bool | $database |
|
array | $options | Array of options, may contain the following values
|
Definition at line 380 of file SiteStats.php.
References $options, array(), SiteStatsUpdate\cacheUpdate(), and wfGetDB().
Referenced by SiteStats\loadAndLazyInit().
Count the total number of edits.
Definition at line 297 of file SiteStats.php.
Referenced by refresh().
Count total files.
Definition at line 364 of file SiteStats.php.
Referenced by refresh().
Count total pages.
Definition at line 337 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 409 of file SiteStats.php.
References array(), articles(), edits(), files(), pages(), users(), and wfGetDB().
Count total users.
Definition at line 346 of file SiteStats.php.
Referenced by refresh().
SiteStatsInit::$db [private] |
Definition at line 273 of file SiteStats.php.
SiteStatsInit::$mArticles = null |
Definition at line 276 of file SiteStats.php.
SiteStatsInit::$mEdits = null [private] |
Definition at line 276 of file SiteStats.php.
SiteStatsInit::$mFiles = null |
Definition at line 277 of file SiteStats.php.
SiteStatsInit::$mPages = null |
Definition at line 276 of file SiteStats.php.
SiteStatsInit::$mUsers = null [private] |
Definition at line 277 of file SiteStats.php.
SiteStatsInit::$mViews = null |
Definition at line 277 of file SiteStats.php.