|
MediaWiki
REL1_19
|
Special page lists various statistics, including the contents of `site_stats`, plus page view details if enabled. More...


Public Member Functions | |
| __construct () | |
| execute ($par) | |
| Default execute method Checks user permissions, calls the function given in mFunction. | |
Public Attributes | |
| $activeUsers = 0 | |
| $edits | |
| $good | |
| $images | |
| $total | |
| $users | |
Private Member Functions | |
| formatRow ($text, $number, $trExtraParams=array(), $descMsg= '', $descMsgParam= '') | |
| Format a row. | |
| getEditStats () | |
| getGroupStats () | |
| getMostViewedPages () | |
| getOtherStats ($stats) | |
| getPageStats () | |
| Each of these methods is pretty self-explanatory, get a particular row for the table of statistics. | |
| getUserStats () | |
| getViewsStats () | |
Private Attributes | |
| $views | |
Special page lists various statistics, including the contents of `site_stats`, plus page view details if enabled.
Definition at line 30 of file SpecialStatistics.php.
Definition at line 35 of file SpecialStatistics.php.
| SpecialStatistics::execute | ( | $ | par | ) |
Default execute method Checks user permissions, calls the function given in mFunction.
This must be overridden by subclasses; it will be made abstract in a future version
| $par | String subpage string, if one was specified |
Reimplemented from SpecialPage.
Definition at line 39 of file SpecialStatistics.php.
References $wgDisableCounters, $wgMemc, $wgMiserMode, SiteStats\activeUsers(), SiteStats\articles(), SiteStatsUpdate\cacheUpdate(), Xml\closeElement(), SiteStats\edits(), getEditStats(), getGroupStats(), getMostViewedPages(), getOtherStats(), SpecialPage\getOutput(), getPageStats(), getUserStats(), getViewsStats(), SiteStats\images(), Xml\openElement(), SiteStats\pages(), SpecialPage\setHeaders(), SiteStats\users(), SiteStats\views(), wfGetDB(), wfMemcKey(), wfMessage(), and wfRunHooks().

| SpecialStatistics::formatRow | ( | $ | text, |
| $ | number, | ||
| $ | trExtraParams = array(), |
||
| $ | descMsg = '', |
||
| $ | descMsgParam = '' |
||
| ) | [private] |
Format a row.
| $text | String: description of the row |
| $number | Float: a statistical number |
| $trExtraParams | Array: params to table row, see Html::elememt |
| $descMsg | String: message key |
| $descMsgParam | Array: message params |
Definition at line 117 of file SpecialStatistics.php.
References Xml\element(), Html\rawElement(), and wfMessage().
Referenced by getEditStats(), getGroupStats(), getMostViewedPages(), getOtherStats(), getPageStats(), getUserStats(), and getViewsStats().


| SpecialStatistics::getEditStats | ( | ) | [private] |
Definition at line 154 of file SpecialStatistics.php.
References Xml\closeElement(), formatRow(), SpecialPage\getLanguage(), Xml\openElement(), Xml\tags(), and wfMsgExt().
Referenced by execute().


| SpecialStatistics::getGroupStats | ( | ) | [private] |
Definition at line 185 of file SpecialStatistics.php.
References $wgGroupPermissions, $wgImplicitGroups, Sanitizer\escapeClass(), formatRow(), MWNamespace\getCanonicalName(), SpecialPage\getLanguage(), SpecialPage\getTitleFor(), Linker\link(), Linker\linkKnown(), Title\newFromText(), SiteStats\numberingroup(), wfMessage(), and wfMsgHtml().
Referenced by execute().


| SpecialStatistics::getMostViewedPages | ( | ) | [private] |
Definition at line 243 of file SpecialStatistics.php.
References $dbr, $res, $title, Xml\closeElement(), formatRow(), SpecialPage\getLanguage(), Linker\link(), Title\makeTitleSafe(), Xml\openElement(), Xml\tags(), wfGetDB(), and wfMsgExt().
Referenced by execute().


| SpecialStatistics::getOtherStats | ( | $ | stats | ) | [private] |
Definition at line 280 of file SpecialStatistics.php.
References Xml\closeElement(), formatRow(), SpecialPage\getLanguage(), Xml\openElement(), Xml\tags(), and wfMsgExt().
Referenced by execute().


| SpecialStatistics::getPageStats | ( | ) | [private] |
Each of these methods is pretty self-explanatory, get a particular row for the table of statistics.
Definition at line 137 of file SpecialStatistics.php.
References Xml\closeElement(), formatRow(), SpecialPage\getLanguage(), SpecialPage\getTitleFor(), Linker\linkKnown(), Xml\openElement(), Xml\tags(), and wfMsgExt().
Referenced by execute().


| SpecialStatistics::getUserStats | ( | ) | [private] |
Definition at line 166 of file SpecialStatistics.php.
References $wgActiveUserDays, Xml\closeElement(), formatRow(), SpecialPage\getLanguage(), SpecialPage\getTitleFor(), Linker\linkKnown(), Xml\openElement(), Xml\tags(), wfMsgExt(), and wfMsgHtml().
Referenced by execute().


| SpecialStatistics::getViewsStats | ( | ) | [private] |
Definition at line 230 of file SpecialStatistics.php.
References Xml\closeElement(), formatRow(), SpecialPage\getLanguage(), Xml\openElement(), Xml\tags(), and wfMsgExt().
Referenced by execute().


| SpecialStatistics::$activeUsers = 0 |
Definition at line 33 of file SpecialStatistics.php.
| SpecialStatistics::$edits |
Definition at line 32 of file SpecialStatistics.php.
| SpecialStatistics::$good |
Definition at line 32 of file SpecialStatistics.php.
| SpecialStatistics::$images |
Definition at line 32 of file SpecialStatistics.php.
| SpecialStatistics::$total |
Definition at line 32 of file SpecialStatistics.php.
| SpecialStatistics::$users |
Definition at line 32 of file SpecialStatistics.php.
SpecialStatistics::$views [private] |
Definition at line 32 of file SpecialStatistics.php.