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 () | |
| 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 260 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, $text, $wgDisableCounters, $wgMessageCache, $wgMiserMode, $wgOut, $wgRequest, SiteStats::activeUsers(), SiteStats::articles(), SiteStatsUpdate::cacheUpdate(), Xml::closeElement(), doRawOutput(), SiteStats::edits(), getEditStats(), getGroupStats(), getMostViewedPages(), getPageStats(), getUserStats(), getViewsStats(), SiteStats::images(), SiteStats::jobs(), SiteStats::numberingroup(), Xml::openElement(), SiteStats::pages(), SpecialPage::setHeaders(), SiteStats::users(), SiteStats::views(), wfEmptyMsg(), wfGetDB(), and wfMsgExt().
| 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 99 of file SpecialStatistics.php.
References $text, $wgStylePath, Xml::closeElement(), Xml::element(), Xml::openElement(), wfEmptyMsg(), and wfMsgExt().
Referenced by getEditStats(), getGroupStats(), getMostViewedPages(), getPageStats(), getUserStats(), and getViewsStats().
| SpecialStatistics::getEditStats | ( | ) | [private] |
Definition at line 136 of file SpecialStatistics.php.
References $wgLang, Xml::closeElement(), formatRow(), Xml::openElement(), Xml::tags(), and wfMsgExt().
Referenced by execute().
| SpecialStatistics::getGroupStats | ( | ) | [private] |
Definition at line 165 of file SpecialStatistics.php.
References $msg, $text, $wgGroupPermissions, $wgImplicitGroups, $wgLang, $wgUser, Sanitizer::escapeClass(), formatRow(), MWNamespace::getCanonicalName(), SpecialPage::getTitleFor(), SiteStats::numberingroup(), wfEmptyMsg(), wfMsg(), wfMsgForContent(), and wfMsgHtml().
Referenced by execute().
| SpecialStatistics::getMostViewedPages | ( | ) | [private] |
Definition at line 218 of file SpecialStatistics.php.
References $dbr, $res, $row, $text, $title, $wgLang, $wgUser, formatRow(), Title::makeTitleSafe(), Xml::tags(), wfGetDB(), 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 120 of file SpecialStatistics.php.
References $wgLang, Xml::closeElement(), formatRow(), Xml::openElement(), Xml::tags(), and wfMsgExt().
Referenced by execute().
| SpecialStatistics::getUserStats | ( | ) | [private] |
Definition at line 151 of file SpecialStatistics.php.
References $wgLang, $wgRCMaxAge, Xml::closeElement(), formatRow(), Xml::openElement(), Xml::tags(), and wfMsgExt().
Referenced by execute().
| SpecialStatistics::getViewsStats | ( | ) | [private] |
Definition at line 205 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.
1.5.9