MediaWiki
REL1_19
|
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. | |
update () | |
Update the current row with the selected values. | |
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 | |
$mFiles = 0 | |
$mPages | |
$mUsers | |
$mViews | |
Private Member Functions | |
getDbParams () | |
Return three arrays of params for the db queries. | |
Private Attributes | |
$db | |
$mEdits |
Class designed for counting of stats.
Definition at line 310 of file SiteStats.php.
SiteStatsInit::__construct | ( | $ | database = false | ) |
Constructor.
$database | Boolean or DatabaseBase:
|
Definition at line 324 of file SiteStats.php.
References wfGetDB().
Count pages in article space(s)
Definition at line 346 of file SiteStats.php.
References $wgArticleCountMethod, and MWNamespace\getContentNamespaces().
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
|
$options | Array of options, may contain the following values
|
Definition at line 420 of file SiteStats.php.
References $options, SiteStatsUpdate\cacheUpdate(), and wfGetDB().
Referenced by DatabaseUpdater\checkStats(), and SiteStats\loadAndLazyInit().
SiteStatsInit::getDbParams | ( | ) | [private] |
Return three arrays of params for the db queries.
Definition at line 474 of file SiteStats.php.
Referenced by refresh(), and update().
Refresh site_stats.
Erase the current record and save all the new values.
Definition at line 463 of file SiteStats.php.
References getDbParams(), and wfGetDB().
Update the current row with the selected values.
Definition at line 453 of file SiteStats.php.
References getDbParams(), and wfGetDB().
SiteStatsInit::$db [private] |
Definition at line 313 of file SiteStats.php.
SiteStatsInit::$mArticles |
Definition at line 316 of file SiteStats.php.
SiteStatsInit::$mEdits [private] |
Definition at line 316 of file SiteStats.php.
SiteStatsInit::$mFiles = 0 |
Definition at line 316 of file SiteStats.php.
SiteStatsInit::$mPages |
Definition at line 316 of file SiteStats.php.
SiteStatsInit::$mUsers |
Definition at line 316 of file SiteStats.php.
SiteStatsInit::$mViews |
Definition at line 316 of file SiteStats.php.