MediaWiki
REL1_22
|
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 482 of file SiteStats.php.
SiteStatsInit::__construct | ( | $ | database = false | ) |
Constructor.
$database | Boolean or DatabaseBase:
|
Definition at line 496 of file SiteStats.php.
References wfGetDB().
Count pages in article space(s)
Definition at line 518 of file SiteStats.php.
References array(), MWNamespace\getContentNamespaces(), and global.
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 592 of file SiteStats.php.
References $options, array(), SiteStatsUpdate\cacheUpdate(), and wfGetDB().
Referenced by SiteStats\loadAndLazyInit().
SiteStatsInit::getDbParams | ( | ) | [private] |
Return three arrays of params for the db queries.
Definition at line 646 of file SiteStats.php.
References array().
Refresh site_stats.
Erase the current record and save all the new values.
Definition at line 635 of file SiteStats.php.
References getDbParams(), list, and wfGetDB().
Update the current row with the selected values.
Definition at line 625 of file SiteStats.php.
References getDbParams(), list, and wfGetDB().
SiteStatsInit::$db [private] |
Definition at line 485 of file SiteStats.php.
SiteStatsInit::$mArticles |
Definition at line 488 of file SiteStats.php.
SiteStatsInit::$mEdits [private] |
Definition at line 488 of file SiteStats.php.
SiteStatsInit::$mFiles = 0 |
Definition at line 488 of file SiteStats.php.
SiteStatsInit::$mPages |
Definition at line 488 of file SiteStats.php.
SiteStatsInit::$mUsers |
Definition at line 488 of file SiteStats.php.
SiteStatsInit::$mViews |
Definition at line 488 of file SiteStats.php.