Inherits SpecialPage.
Public Member Functions | |
__construct () | |
getDefaultOptions () | |
Get a FormOptions object containing the default options. | |
setup ($parameters) | |
Get a FormOptions object with options as specified by the user. | |
feedSetup () | |
Get a FormOptions object sepcific for feed requests. | |
execute ($parameters) | |
Main execution point. | |
getFeedObject ($feedFormat) | |
Return an array with a ChangesFeed object and ChannelFeed object. | |
parseParameters ($par, FormOptions $opts) | |
Process $par and put options found if $opts Mainly used when including the page. | |
checkLastModified ($feedFormat) | |
Get last modified date, for client caching Don't use this if we are using the patrol feature, patrol changes don't update the timestamp. | |
buildMainQueryConds (FormOptions $opts) | |
Return an array of conditions depending of options set in $opts. | |
doMainQuery ($conds, $opts) | |
Process the query. | |
webOutput ($rows, $opts) | |
Send output to $wgOut, only called if not used feeds. | |
doHeader ($opts) | |
Return the text to be displayed above the changes. | |
getExtraOptions ($opts) | |
Get options to be displayed in a form. | |
setTopText (OutputPage $out, FormOptions $opts) | |
Send the text to be displayed above the options. | |
setBottomText (OutputPage $out, FormOptions $opts) | |
Send the text to be displayed after the options, for use in Recentchangeslinked. | |
filterByCategories (&$rows, FormOptions $opts) | |
Filter $rows by categories set in $opts. | |
makeOptionsLink ($title, $override, $options, $active=false) | |
Makes change an option link which carries all the other options. | |
optionsPanel ($defaults, $nondefaults) | |
Creates the options panel. | |
Protected Member Functions | |
namespaceFilterForm (FormOptions $opts) | |
Creates the choose namespace selection. | |
categoryFilterForm (FormOptions $opts) | |
Create a input to filter changes by categories. |
Definition at line 7 of file SpecialRecentchanges.php.
SpecialRecentChanges::__construct | ( | ) |
SpecialRecentChanges::buildMainQueryConds | ( | FormOptions $ | opts | ) |
Return an array of conditions depending of options set in $opts.
$opts | FormOptions |
Definition at line 196 of file SpecialRecentchanges.php.
References $conds, $dbr, $wgUser, FormOptions::reset(), wfGetDB(), and wfTimestamp().
Referenced by execute().
SpecialRecentChanges::categoryFilterForm | ( | FormOptions $ | opts | ) | [protected] |
Create a input to filter changes by categories.
$opts | FormOptions |
Definition at line 523 of file SpecialRecentchanges.php.
References $input, Xml::checkLabel(), Xml::inputLabelSep(), and wfMsg().
Referenced by getExtraOptions().
SpecialRecentChanges::checkLastModified | ( | $ | feedFormat | ) |
Get last modified date, for client caching Don't use this if we are using the patrol feature, patrol changes don't update the timestamp.
$feedFormat | String |
Definition at line 177 of file SpecialRecentchanges.php.
References $dbr, $wgOut, $wgUseRCPatrol, and wfGetDB().
Referenced by execute().
SpecialRecentChanges::doHeader | ( | $ | opts | ) |
Return the text to be displayed above the changes.
$opts | FormOptions |
Definition at line 409 of file SpecialRecentchanges.php.
References $count, $defaults, $key, $out, $t, $wgOut, $wgScript, Xml::closeElement(), Xml::fieldset(), getExtraOptions(), SpecialPage::getTitle(), Xml::hidden(), Xml::openElement(), optionsPanel(), setBottomText(), setTopText(), Xml::tags(), and wfMsg().
Referenced by execute(), and webOutput().
SpecialRecentChanges::doMainQuery | ( | $ | conds, | |
$ | opts | |||
) |
Process the query.
$conds | array | |
$opts | FormOptions |
Definition at line 268 of file SpecialRecentchanges.php.
References $conds, $dbr, $fields, $res, $sql, $wgUser, ChangeTags::modifyDisplayQuery(), wfGetDB(), and wfRunHooks().
Referenced by execute().
SpecialRecentChanges::execute | ( | $ | parameters | ) |
Main execution point.
$parameters | string |
Reimplemented from SpecialPage.
Definition at line 81 of file SpecialRecentchanges.php.
References $batch, $conds, $row, $rows, $wgOut, $wgRequest, buildMainQueryConds(), checkLastModified(), doHeader(), doMainQuery(), feedSetup(), getFeedObject(), SpecialPage::including(), SpecialPage::outputHeader(), SpecialPage::setHeaders(), setup(), and webOutput().
SpecialRecentChanges::feedSetup | ( | ) |
Get a FormOptions object sepcific for feed requests.
Definition at line 67 of file SpecialRecentchanges.php.
References $wgFeedLimit, $wgRequest, and getDefaultOptions().
Referenced by execute().
SpecialRecentChanges::filterByCategories | ( | &$ | rows, | |
FormOptions $ | opts | |||
) |
Filter $rows by categories set in $opts.
$rows | array of database rows | |
$opts | FormOptions |
Definition at line 539 of file SpecialRecentchanges.php.
References $rows, and Title::makeTitle().
Referenced by webOutput().
SpecialRecentChanges::getDefaultOptions | ( | ) |
Get a FormOptions object containing the default options.
Definition at line 18 of file SpecialRecentchanges.php.
References $wgUser, and FormOptions::INTNULL.
Referenced by feedSetup(), and setup().
SpecialRecentChanges::getExtraOptions | ( | $ | opts | ) |
Get options to be displayed in a form.
$opts | FormOptions |
Definition at line 468 of file SpecialRecentchanges.php.
References $wgAllowCategorizedRecentChanges, ChangeTags::buildTagFilterSelector(), categoryFilterForm(), namespaceFilterForm(), and wfRunHooks().
Referenced by doHeader().
SpecialRecentChanges::getFeedObject | ( | $ | feedFormat | ) |
Return an array with a ChangesFeed object and ChannelFeed object.
Definition at line 133 of file SpecialRecentchanges.php.
References wfMsgForContent().
Referenced by execute().
SpecialRecentChanges::makeOptionsLink | ( | $ | title, | |
$ | override, | |||
$ | options, | |||
$ | active = false | |||
) |
Makes change an option link which carries all the other options.
$title | see Title | |
$override | ||
$options |
Definition at line 596 of file SpecialRecentchanges.php.
References $options, $title, $wgUser, and SpecialPage::getTitle().
Referenced by optionsPanel().
SpecialRecentChanges::namespaceFilterForm | ( | FormOptions $ | opts | ) | [protected] |
Creates the choose namespace selection.
$opts | FormOptions |
Definition at line 510 of file SpecialRecentchanges.php.
References Xml::checkLabel(), Xml::label(), Xml::namespaceSelector(), and wfMsg().
Referenced by getExtraOptions().
SpecialRecentChanges::optionsPanel | ( | $ | defaults, | |
$ | nondefaults | |||
) |
Creates the options panel.
$defaults | array | |
$nondefaults | array |
Definition at line 609 of file SpecialRecentchanges.php.
References $defaults, $options, $wgLang, $wgRCLinkDays, $wgRCLinkLimits, $wgUser, makeOptionsLink(), sort, wfEmptyMsg(), wfMsg(), wfMsgExt(), wfMsgHtml(), and wfTimestampNow().
Referenced by doHeader().
SpecialRecentChanges::parseParameters | ( | $ | par, | |
FormOptions $ | opts | |||
) |
Process $par and put options found if $opts Mainly used when including the page.
$par | String | |
$opts | FormOptions |
Definition at line 149 of file SpecialRecentchanges.php.
Referenced by setup().
SpecialRecentChanges::setBottomText | ( | OutputPage $ | out, | |
FormOptions $ | opts | |||
) |
Send the text to be displayed after the options, for use in Recentchangeslinked.
$out | OutputPage | |
$opts | FormOptions |
Definition at line 502 of file SpecialRecentchanges.php.
Referenced by doHeader().
SpecialRecentChanges::setTopText | ( | OutputPage $ | out, | |
FormOptions $ | opts | |||
) |
Send the text to be displayed above the options.
$out | OutputPage | |
$opts | FormOptions |
Definition at line 491 of file SpecialRecentchanges.php.
References OutputPage::addWikiText(), and wfMsgForContentNoTrans().
Referenced by doHeader().
SpecialRecentChanges::setup | ( | $ | parameters | ) |
Get a FormOptions object with options as specified by the user.
Definition at line 47 of file SpecialRecentchanges.php.
References $wgRequest, getDefaultOptions(), and parseParameters().
Referenced by execute().
SpecialRecentChanges::webOutput | ( | $ | rows, | |
$ | opts | |||
) |
Send output to $wgOut, only called if not used feeds.
$rows | array of database rows | |
$opts | FormOptions |
Definition at line 344 of file SpecialRecentchanges.php.
References $counter, $dbr, $obj, $rows, $s, $wgAllowCategorizedRecentChanges, $wgOut, $wgRCShowWatchingUsers, $wgShowUpdatedMarker, $wgUser, doHeader(), filterByCategories(), SpecialPage::including(), RecentChange::newFromRow(), ChangesList::newFromUser(), and wfGetDB().
Referenced by execute().