MediaWiki
REL1_20
|
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 464 of file SiteStats.php.
SiteStatsInit::__construct | ( | $ | database = false | ) |
Constructor.
$database | Boolean or DatabaseBase:
|
Definition at line 478 of file SiteStats.php.
References wfGetDB().
Count pages in article space(s)
Definition at line 500 of file SiteStats.php.
References 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 574 of file SiteStats.php.
References $options, SiteStatsUpdate\cacheUpdate(), and wfGetDB().
Referenced by SiteStats\loadAndLazyInit().
SiteStatsInit::getDbParams | ( | ) | [private] |
Return three arrays of params for the db queries.
Definition at line 628 of file SiteStats.php.
Refresh site_stats.
Erase the current record and save all the new values.
Definition at line 617 of file SiteStats.php.
References getDbParams(), and wfGetDB().
Update the current row with the selected values.
Definition at line 607 of file SiteStats.php.
References getDbParams(), and wfGetDB().
SiteStatsInit::$db [private] |
Definition at line 467 of file SiteStats.php.
SiteStatsInit::$mArticles |
Definition at line 470 of file SiteStats.php.
SiteStatsInit::$mEdits [private] |
Definition at line 470 of file SiteStats.php.
SiteStatsInit::$mFiles = 0 |
Definition at line 470 of file SiteStats.php.
SiteStatsInit::$mPages |
Definition at line 470 of file SiteStats.php.
SiteStatsInit::$mUsers |
Definition at line 470 of file SiteStats.php.
SiteStatsInit::$mViews |
Definition at line 470 of file SiteStats.php.