Inherits SpecialPage.
Public Member Functions | |
__construct () | |
execute ($par) | |
Default execute method Checks user permissions, calls the function given in mFunction. | |
Private Member Functions | |
formatRow ($text, $number, $trExtraParams=array(), $descMsg= '', $descMsgParam= '') | |
Format a row. | |
getPageStats () | |
Each of these methods is pretty self-explanatory, get a particular row for the table of statistics. | |
getEditStats () | |
getUserStats () | |
getGroupStats () | |
getViewsStats () | |
getMostViewedPages () | |
getOtherStats ($stats) | |
doRawOutput () | |
Do the action=raw output for this page. | |
Private Attributes | |
$views | |
$edits | |
$good | |
$images | |
$total | |
$users | |
$activeUsers | |
$admins | |
$numJobs = 0 |
mixed | $par (not used) |
Definition at line 16 of file SpecialStatistics.php.
SpecialStatistics::__construct | ( | ) |
Definition at line 21 of file SpecialStatistics.php.
SpecialStatistics::doRawOutput | ( | ) | [private] |
Do the action=raw output for this page.
Legacy, but we support it for backwards compatibility http://lists.wikimedia.org/pipermail/wikitech-l/2008-August/039202.html
Definition at line 308 of file SpecialStatistics.php.
References $wgOut.
Referenced by execute().
SpecialStatistics::execute | ( | $ | par | ) |
Default execute method Checks user permissions, calls the function given in mFunction.
This may be overridden by subclasses.
Reimplemented from SpecialPage.
Definition at line 25 of file SpecialStatistics.php.
References $dbw, $wgDisableCounters, $wgMemc, $wgMessageCache, $wgMiserMode, $wgOut, $wgRequest, SiteStats::activeUsers(), SiteStats::articles(), SiteStatsUpdate::cacheUpdate(), Xml::closeElement(), doRawOutput(), SiteStats::edits(), getEditStats(), getGroupStats(), getMostViewedPages(), getOtherStats(), getPageStats(), getUserStats(), getViewsStats(), SiteStats::images(), SiteStats::jobs(), SiteStats::numberingroup(), Xml::openElement(), SiteStats::pages(), SpecialPage::setHeaders(), SiteStats::users(), SiteStats::views(), wfEmptyMsg(), wfGetDB(), wfMemcKey(), wfMsgExt(), and wfRunHooks().
SpecialStatistics::formatRow | ( | $ | text, | |
$ | number, | |||
$ | trExtraParams = array() , |
|||
$ | descMsg = '' , |
|||
$ | descMsgParam = '' | |||
) | [private] |
Format a row.
string | $text description of the row | |
float | $number a number | |
array | $trExtraParams | |
string | $descMsg | |
string | $descMsgParam |
Definition at line 111 of file SpecialStatistics.php.
References $wgStylePath, Xml::closeElement(), Xml::element(), Xml::openElement(), wfEmptyMsg(), and wfMsgExt().
Referenced by getEditStats(), getGroupStats(), getMostViewedPages(), getOtherStats(), getPageStats(), getUserStats(), and getViewsStats().
SpecialStatistics::getEditStats | ( | ) | [private] |
Definition at line 148 of file SpecialStatistics.php.
References $wgLang, Xml::closeElement(), formatRow(), Xml::openElement(), Xml::tags(), and wfMsgExt().
Referenced by execute().
SpecialStatistics::getGroupStats | ( | ) | [private] |
Definition at line 185 of file SpecialStatistics.php.
References $msg, $wgGroupPermissions, $wgImplicitGroups, $wgLang, $wgUser, Sanitizer::escapeClass(), formatRow(), MWNamespace::getCanonicalName(), SpecialPage::getTitleFor(), Title::newFromText(), SiteStats::numberingroup(), wfEmptyMsg(), wfMsg(), wfMsgForContent(), and wfMsgHtml().
Referenced by execute().
SpecialStatistics::getMostViewedPages | ( | ) | [private] |
Definition at line 244 of file SpecialStatistics.php.
References $dbr, $res, $title, $wgLang, $wgUser, Xml::closeElement(), formatRow(), Title::makeTitleSafe(), Xml::openElement(), Xml::tags(), wfGetDB(), and wfMsgExt().
Referenced by execute().
SpecialStatistics::getOtherStats | ( | $ | stats | ) | [private] |
Definition at line 283 of file SpecialStatistics.php.
References $name, $wgLang, Xml::closeElement(), formatRow(), 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 132 of file SpecialStatistics.php.
References $wgLang, Xml::closeElement(), formatRow(), Xml::openElement(), Xml::tags(), and wfMsgExt().
Referenced by execute().
SpecialStatistics::getUserStats | ( | ) | [private] |
Definition at line 163 of file SpecialStatistics.php.
References $wgLang, $wgRCMaxAge, $wgUser, Xml::closeElement(), formatRow(), SpecialPage::getTitleFor(), Xml::openElement(), Xml::tags(), wfMsgExt(), and wfMsgHtml().
Referenced by execute().
SpecialStatistics::getViewsStats | ( | ) | [private] |
Definition at line 231 of file SpecialStatistics.php.
References $wgLang, Xml::closeElement(), formatRow(), Xml::openElement(), Xml::tags(), and wfMsgExt().
Referenced by execute().
SpecialStatistics::$activeUsers [private] |
Definition at line 18 of file SpecialStatistics.php.
SpecialStatistics::$admins [private] |
Definition at line 18 of file SpecialStatistics.php.
SpecialStatistics::$edits [private] |
Definition at line 18 of file SpecialStatistics.php.
SpecialStatistics::$good [private] |
Definition at line 18 of file SpecialStatistics.php.
SpecialStatistics::$images [private] |
Definition at line 18 of file SpecialStatistics.php.
SpecialStatistics::$numJobs = 0 [private] |
Definition at line 19 of file SpecialStatistics.php.
SpecialStatistics::$total [private] |
Definition at line 18 of file SpecialStatistics.php.
SpecialStatistics::$users [private] |
Definition at line 18 of file SpecialStatistics.php.
SpecialStatistics::$views [private] |
Definition at line 18 of file SpecialStatistics.php.