MediaWiki
REL1_22
|
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 | |
Protected Member Functions | |
getGroupName () | |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'. | |
Private Member Functions | |
formatRow ($text, $number, $trExtraParams=array(), $descMsg= '', $descMsgParam= '') | |
Format a row. | |
formatRowHeader ($header) | |
Format row header. | |
getEditStats () | |
getGroupStats () | |
getMostViewedPages () | |
getOtherStats (array $stats) | |
Conversion of external statistics into an internal representation Following a ([<header-message>][<item-message>] = number) pattern. | |
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 | ( | $ | subPage | ) |
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
$subPage | string|null |
Reimplemented from SpecialPage.
Definition at line 39 of file SpecialStatistics.php.
References $key, $wgDisableCounters, $wgMemc, SiteStats\activeUsers(), array(), SiteStats\articles(), SiteStatsUpdate\cacheUpdate(), Xml\closeElement(), edits, getEditStats(), getGroupStats(), getMostViewedPages(), getOtherStats(), SpecialPage\getOutput(), getPageStats(), getUserStats(), getViewsStats(), global, hook, SiteStats\images(), SpecialPage\msg(), Xml\openElement(), pages, SpecialPage\setHeaders(), SiteStats\users(), SiteStats\views(), wfGetDB(), wfMemcKey(), 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 | |
array | string | $descMsgParam | Message parameters |
Definition at line 117 of file SpecialStatistics.php.
References array(), Xml\element(), SpecialPage\msg(), and Html\rawElement().
Referenced by getEditStats(), getGroupStats(), getMostViewedPages(), getOtherStats(), getPageStats(), getUserStats(), and getViewsStats().
SpecialStatistics::formatRowHeader | ( | $ | header | ) | [private] |
Format row header.
string | $header |
Definition at line 326 of file SpecialStatistics.php.
References array(), Xml\closeElement(), SpecialPage\msg(), Xml\openElement(), and tags().
Referenced by getOtherStats().
SpecialStatistics::getEditStats | ( | ) | [private] |
Definition at line 154 of file SpecialStatistics.php.
References array(), Xml\closeElement(), edits, formatRow(), SpecialPage\getLanguage(), SpecialPage\msg(), Xml\openElement(), and tags().
Referenced by execute().
SpecialStatistics::getGroupName | ( | ) | [protected] |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.
Reimplemented from SpecialPage.
Definition at line 332 of file SpecialStatistics.php.
SpecialStatistics::getGroupStats | ( | ) | [private] |
Definition at line 185 of file SpecialStatistics.php.
References array(), as, Sanitizer\escapeClass(), formatRow(), MWNamespace\getCanonicalName(), SpecialPage\getLanguage(), SpecialPage\getTitleFor(), global, Linker\link(), Linker\linkKnown(), SpecialPage\msg(), Title\newFromText(), and SiteStats\numberingroup().
Referenced by execute().
SpecialStatistics::getMostViewedPages | ( | ) | [private] |
Definition at line 243 of file SpecialStatistics.php.
References $dbr, $res, $title, array(), as, Xml\closeElement(), formatRow(), SpecialPage\getLanguage(), Linker\link(), Title\makeTitleSafe(), SpecialPage\msg(), Xml\openElement(), tags(), and wfGetDB().
Referenced by execute().
SpecialStatistics::getOtherStats | ( | array $ | stats | ) | [private] |
Conversion of external statistics into an internal representation Following a ([<header-message>][<item-message>] = number) pattern.
array | $stats |
Definition at line 287 of file SpecialStatistics.php.
References $key, $name, $value, array(), as, formatRow(), formatRowHeader(), SpecialPage\getLanguage(), and SpecialPage\msg().
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 array(), Xml\closeElement(), formatRow(), SpecialPage\getLanguage(), SpecialPage\getTitleFor(), Linker\linkKnown(), SpecialPage\msg(), Xml\openElement(), and tags().
Referenced by execute().
SpecialStatistics::getUserStats | ( | ) | [private] |
Definition at line 166 of file SpecialStatistics.php.
References array(), Xml\closeElement(), formatRow(), SpecialPage\getLanguage(), SpecialPage\getTitleFor(), global, Linker\linkKnown(), SpecialPage\msg(), Xml\openElement(), and tags().
Referenced by execute().
SpecialStatistics::getViewsStats | ( | ) | [private] |
Definition at line 230 of file SpecialStatistics.php.
References array(), Xml\closeElement(), edits, formatRow(), SpecialPage\getLanguage(), SpecialPage\msg(), Xml\openElement(), and tags().
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.