MediaWiki
REL1_20
|
A special page that lists last changes made to the wiki. More...
Public Member Functions | |
__construct ($name= 'Recentchanges') | |
addRecentChangesJS () | |
add javascript specific to the [[Special:RecentChanges]] page | |
buildMainQueryConds (FormOptions $opts) | |
Return an array of conditions depending of options set in $opts. | |
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. | |
doHeader ($opts) | |
Return the text to be displayed above the changes. | |
doMainQuery ($conds, $opts) | |
Process the query. | |
execute ($subpage) | |
Main execution point. | |
feedSetup () | |
Create a FormOptions object specific for feed requests and return it. | |
filterByCategories (&$rows, FormOptions $opts) | |
Filter $rows by categories set in $opts. | |
getDefaultOptions () | |
Get a FormOptions object containing the default options. | |
getExtraOptions ($opts) | |
Get options to be displayed in a form. | |
getFeedObject ($feedFormat) | |
Return an array with a ChangesFeed object and ChannelFeed object. | |
getFeedQuery () | |
Get the query string to append to feed link URLs. | |
getOptions () | |
Get the current FormOptions for this request. | |
makeOptionsLink ($title, $override, $options, $active=false) | |
Makes change an option link which carries all the other options. | |
optionsPanel ($defaults, $nondefaults) | |
Creates the options panel. | |
parseParameters ($par, FormOptions $opts) | |
Process $par and put options found if $opts Mainly used when including the page. | |
setBottomText (FormOptions $opts) | |
Send the text to be displayed after the options, for use in Recentchangeslinked. | |
setTopText (FormOptions $opts) | |
Send the text to be displayed above the options. | |
setup ($parameters) | |
Create a FormOptions object with options as specified by the user. | |
webOutput ($rows, $opts) | |
Send output to the OutputPage object, only called if not used feeds. | |
Public Attributes | |
$rcOptions | |
$rcSubpage | |
Protected Member Functions | |
categoryFilterForm (FormOptions $opts) | |
Create a input to filter changes by categories. | |
getCustomFilters () | |
Get custom show/hide filters. | |
namespaceFilterForm (FormOptions $opts) | |
Creates the choose namespace selection. | |
Protected Attributes | |
$customFilters |
A special page that lists last changes made to the wiki.
Definition at line 29 of file SpecialRecentchanges.php.
SpecialRecentChanges::__construct | ( | $ | name = 'Recentchanges' | ) |
Definition at line 33 of file SpecialRecentchanges.php.
add javascript specific to the [[Special:RecentChanges]] page
Definition at line 883 of file SpecialRecentchanges.php.
References SpecialPage\getOutput().
Referenced by execute().
Return an array of conditions depending of options set in $opts.
$opts | FormOptions |
Definition at line 278 of file SpecialRecentchanges.php.
References $dbr, MWNamespace\getAssociated(), SpecialPage\getName(), SpecialPage\getUser(), 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 691 of file SpecialRecentchanges.php.
References $input, Xml\checkLabel(), Xml\inputLabelSep(), and SpecialPage\msg().
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 260 of file SpecialRecentchanges.php.
References $dbr, SpecialPage\getOutput(), SpecialPage\getUser(), and wfGetDB().
Referenced by execute().
SpecialRecentChanges::doHeader | ( | $ | opts | ) |
Return the text to be displayed above the changes.
$opts | FormOptions |
Definition at line 550 of file SpecialRecentchanges.php.
References $count, $out, $t, $value, Xml\closeElement(), Xml\fieldset(), getExtraOptions(), SpecialPage\getOutput(), SpecialPage\getTitle(), Html\hidden(), SpecialPage\msg(), Xml\openElement(), optionsPanel(), setBottomText(), setTopText(), and Xml\tags().
Referenced by execute(), and webOutput().
SpecialRecentChanges::doMainQuery | ( | $ | conds, |
$ | opts | ||
) |
Process the query.
$conds | Array |
$opts | FormOptions |
Reimplemented in SpecialRecentchangeslinked.
Definition at line 371 of file SpecialRecentchanges.php.
References $dbr, $limit, $res, SpecialPage\getUser(), ChangeTags\modifyDisplayQuery(), wfGetDB(), and wfRunHooks().
Referenced by execute().
SpecialRecentChanges::execute | ( | $ | subpage | ) |
Main execution point.
$subpage | String |
Reimplemented from SpecialPage.
Definition at line 139 of file SpecialRecentchanges.php.
References LinkBatch\add(), addRecentChangesJS(), buildMainQueryConds(), checkLastModified(), doHeader(), doMainQuery(), getFeedObject(), getOptions(), SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\including(), SpecialPage\outputHeader(), SpecialPage\setHeaders(), and webOutput().
Create a FormOptions object specific for feed requests and return it.
Reimplemented in SpecialRecentchangeslinked.
Definition at line 109 of file SpecialRecentchanges.php.
References getDefaultOptions(), and SpecialPage\getRequest().
Referenced by getOptions().
SpecialRecentChanges::filterByCategories | ( | &$ | rows, |
FormOptions $ | opts | ||
) |
Filter $rows by categories set in $opts.
$rows | Array of database rows |
$opts | FormOptions |
Definition at line 707 of file SpecialRecentchanges.php.
References Title\makeTitle(), and Categoryfinder\seed().
Referenced by webOutput().
SpecialRecentChanges::getCustomFilters | ( | ) | [protected] |
Get custom show/hide filters.
Definition at line 96 of file SpecialRecentchanges.php.
References wfRunHooks().
Referenced by optionsPanel(), and setup().
Get a FormOptions object containing the default options.
Reimplemented in SpecialRecentchangeslinked.
Definition at line 42 of file SpecialRecentchanges.php.
References SpecialPage\getUser(), and FormOptions\INTNULL.
Referenced by feedSetup(), and setup().
SpecialRecentChanges::getExtraOptions | ( | $ | opts | ) |
Get options to be displayed in a form.
$opts | FormOptions |
Reimplemented in SpecialRecentchangeslinked.
Definition at line 612 of file SpecialRecentchanges.php.
References ChangeTags\buildTagFilterSelector(), categoryFilterForm(), namespaceFilterForm(), and wfRunHooks().
Referenced by doHeader().
SpecialRecentChanges::getFeedObject | ( | $ | feedFormat | ) |
Return an array with a ChangesFeed object and ChannelFeed object.
Reimplemented in SpecialRecentchangeslinked.
Definition at line 190 of file SpecialRecentchanges.php.
References SpecialPage\getTitle(), and SpecialPage\msg().
Referenced by execute().
Get the query string to append to feed link URLs.
This is overridden by RCL to add the target parameter
Reimplemented in SpecialRecentchangeslinked.
Definition at line 540 of file SpecialRecentchanges.php.
Referenced by webOutput().
Get the current FormOptions for this request.
Definition at line 121 of file SpecialRecentchanges.php.
References feedSetup(), SpecialPage\getRequest(), SpecialPage\including(), and setup().
Referenced by execute(), and SpecialRecentchangeslinked\getTargetTitle().
SpecialRecentChanges::makeOptionsLink | ( | $ | title, |
$ | override, | ||
$ | options, | ||
$ | active = false |
||
) |
Makes change an option link which carries all the other options.
$title | Title |
$override | Array: options to override |
$options | Array: current options |
$active | Boolean: whether to show the link in bold |
Definition at line 774 of file SpecialRecentchanges.php.
References $options, $params, $title, $value, SpecialPage\getTitle(), and Linker\linkKnown().
Referenced by optionsPanel().
SpecialRecentChanges::namespaceFilterForm | ( | FormOptions $ | opts | ) | [protected] |
Creates the choose namespace selection.
$opts | FormOptions |
Definition at line 666 of file SpecialRecentchanges.php.
References Xml\checkLabel(), Xml\label(), SpecialPage\msg(), and Html\namespaceSelector().
Referenced by SpecialRecentchangeslinked\getExtraOptions(), and getExtraOptions().
SpecialRecentChanges::optionsPanel | ( | $ | defaults, |
$ | nondefaults | ||
) |
Creates the options panel.
$defaults | Array |
$nondefaults | Array |
Definition at line 800 of file SpecialRecentchanges.php.
References $options, $params, $user, $value, getCustomFilters(), SpecialPage\getLanguage(), SpecialPage\getUser(), makeOptionsLink(), SpecialPage\msg(), 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 |
Reimplemented in SpecialRecentchangeslinked.
Definition at line 207 of file SpecialRecentchanges.php.
Referenced by setup().
Send the text to be displayed after the options, for use in Recentchangeslinked.
$opts | FormOptions |
Reimplemented in SpecialRecentchangeslinked.
Definition at line 657 of file SpecialRecentchanges.php.
Referenced by doHeader().
SpecialRecentChanges::setTopText | ( | FormOptions $ | opts | ) |
Send the text to be displayed above the options.
$opts | FormOptions |
Reimplemented in SpecialRecentchangeslinked.
Definition at line 635 of file SpecialRecentchanges.php.
References $wgContLang, SpecialPage\getOutput(), SpecialPage\msg(), and Html\rawElement().
Referenced by doHeader().
SpecialRecentChanges::setup | ( | $ | parameters | ) |
Create a FormOptions object with options as specified by the user.
$parameters | array |
Definition at line 73 of file SpecialRecentchanges.php.
References $params, getCustomFilters(), getDefaultOptions(), SpecialPage\getRequest(), and parseParameters().
Referenced by getOptions().
SpecialRecentChanges::webOutput | ( | $ | rows, |
$ | opts | ||
) |
Send output to the OutputPage object, only called if not used feeds.
$rows | Array of database rows |
$opts | FormOptions |
Definition at line 473 of file SpecialRecentchanges.php.
References $dbr, $limit, $s, doHeader(), filterByCategories(), SpecialPage\getContext(), getFeedQuery(), SpecialPage\getOutput(), SpecialPage\getUser(), SpecialPage\including(), ChangesList\newFromContext(), RecentChange\newFromRow(), and wfGetDB().
Referenced by execute().
SpecialRecentChanges::$customFilters [protected] |
Definition at line 31 of file SpecialRecentchanges.php.
SpecialRecentChanges::$rcOptions |
Definition at line 30 of file SpecialRecentchanges.php.
SpecialRecentChanges::$rcSubpage |
Definition at line 30 of file SpecialRecentchanges.php.