MediaWiki
REL1_24
|
A special page that lists last changes made to the wiki. More...
Public Member Functions | |
__construct ($name= 'Recentchanges', $restriction= '') | |
buildMainQueryConds (FormOptions $opts) | |
Return an array of conditions depending of options set in $opts. | |
checkLastModified () | |
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, $numRows) | |
Set the text to be displayed above the changes. | |
doMainQuery ($conds, $opts) | |
Process the query. | |
execute ($subpage) | |
Main execution point. | |
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. | |
isIncludable () | |
Whether it's allowed to transclude the special page via {{Special:Foo/params}}. | |
makeOptionsLink ($title, $override, $options, $active=false) | |
Makes change an option link which carries all the other options. | |
optionsPanel ($defaults, $nondefaults, $numRows) | |
Creates the options panel. | |
outputChangesList ($rows, $opts) | |
Build and output the actual changes list. | |
outputFeedLinks () | |
Output feed links. | |
parseParameters ($par, FormOptions $opts) | |
Process $par and put options found in $opts. | |
setTopText (FormOptions $opts) | |
Send the text to be displayed above the options. | |
validateOptions (FormOptions $opts) | |
Validate a FormOptions object generated by getDefaultOptions() with values already populated. | |
Protected Member Functions | |
addModules () | |
Add page-specific modules. | |
categoryFilterForm (FormOptions $opts) | |
Create an input to filter changes by categories. | |
getCustomFilters () | |
Get custom show/hide filters. | |
namespaceFilterForm (FormOptions $opts) | |
Creates the choose namespace selection. | |
runMainQueryHook (&$tables, &$fields, &$conds, &$query_options, &$join_conds, $opts) | |
Private Member Functions | |
getFeedQuery () | |
Get URL query parameters for action=feedrecentchanges API feed of current recent changes view. |
A special page that lists last changes made to the wiki.
Definition at line 29 of file SpecialRecentchanges.php.
SpecialRecentChanges::__construct | ( | $ | name = 'Recentchanges' , |
$ | restriction = '' |
||
) |
Definition at line 31 of file SpecialRecentchanges.php.
References $name.
SpecialRecentChanges::addModules | ( | ) | [protected] |
Add page-specific modules.
Reimplemented from ChangesListSpecialPage.
Definition at line 487 of file SpecialRecentchanges.php.
References $out, and SpecialPage\getOutput().
Return an array of conditions depending of options set in $opts.
FormOptions | $opts |
Reimplemented from ChangesListSpecialPage.
Definition at line 166 of file SpecialRecentchanges.php.
References $conds, $dbr, ChangesListSpecialPage\getDB(), FormOptions\reset(), and wfTimestamp().
SpecialRecentChanges::categoryFilterForm | ( | FormOptions $ | opts | ) | [protected] |
Create an input to filter changes by categories.
FormOptions | $opts |
Definition at line 539 of file SpecialRecentchanges.php.
References array(), Xml\checkLabel(), Xml\inputLabelSep(), list, SpecialPage\msg(), and text.
Referenced by getExtraOptions().
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.
Definition at line 500 of file SpecialRecentchanges.php.
References $dbr, and ChangesListSpecialPage\getDB().
Referenced by execute().
SpecialRecentChanges::doHeader | ( | $ | opts, |
$ | numRows | ||
) |
Set the text to be displayed above the changes.
FormOptions | $opts | |
int | $numRows | Number of rows in the result to show after this header |
Reimplemented from ChangesListSpecialPage.
Definition at line 365 of file SpecialRecentchanges.php.
References $count, $form, $key, $name, $out, $t, $value, array(), as, Xml\closeElement(), Xml\fieldset(), SpecialPage\getContext(), getExtraOptions(), SpecialPage\getOutput(), SpecialPage\getPageTitle(), Html\hidden(), ChangesListSpecialPage\makeLegend(), SpecialPage\msg(), Xml\openElement(), optionsPanel(), ChangesListSpecialPage\setBottomText(), setTopText(), Xml\tags(), text, and wfScript().
SpecialRecentChanges::doMainQuery | ( | $ | conds, |
$ | opts | ||
) |
Process the query.
array | $conds | |
FormOptions | $opts |
Reimplemented from ChangesListSpecialPage.
Reimplemented in SpecialRecentChangesLinked.
Definition at line 194 of file SpecialRecentchanges.php.
References $conds, $dbr, $tables, $user, array(), filterByCategories(), SpecialPage\getConfig(), ChangesListSpecialPage\getDB(), SpecialPage\getUser(), ChangeTags\modifyDisplayQuery(), runMainQueryHook(), and RecentChange\selectFields().
SpecialRecentChanges::execute | ( | $ | subpage | ) |
Main execution point.
string | $subpage |
Reimplemented from ChangesListSpecialPage.
Definition at line 41 of file SpecialRecentchanges.php.
References $query, checkLastModified(), getFeedQuery(), SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\including(), wfAppendQuery(), and wfScript().
SpecialRecentChanges::filterByCategories | ( | &$ | rows, |
FormOptions $ | opts | ||
) |
Filter $rows by categories set in $opts.
ResultWrapper | $rows | Database rows |
FormOptions | $opts |
Definition at line 555 of file SpecialRecentchanges.php.
References $rev, array(), as, Title\makeTitle(), and CategoryFinder\seed().
Referenced by doMainQuery().
SpecialRecentChanges::getCustomFilters | ( | ) | [protected] |
Get custom show/hide filters.
Reimplemented from ChangesListSpecialPage.
Definition at line 95 of file SpecialRecentchanges.php.
References array(), and wfRunHooks().
Referenced by optionsPanel().
Get a FormOptions object containing the default options.
Reimplemented from ChangesListSpecialPage.
Reimplemented in SpecialRecentChangesLinked.
Definition at line 68 of file SpecialRecentchanges.php.
References $user, and SpecialPage\getUser().
SpecialRecentChanges::getExtraOptions | ( | $ | opts | ) |
Get options to be displayed in a form.
FormOptions | $opts |
Reimplemented from ChangesListSpecialPage.
Reimplemented in SpecialRecentChangesLinked.
Definition at line 459 of file SpecialRecentchanges.php.
References array(), ChangeTags\buildTagFilterSelector(), categoryFilterForm(), SpecialPage\getConfig(), SpecialPage\getName(), namespaceFilterForm(), and wfRunHooks().
Referenced by doHeader().
SpecialRecentChanges::getFeedQuery | ( | ) | [private] |
Get URL query parameters for action=feedrecentchanges API feed of current recent changes view.
Definition at line 273 of file SpecialRecentchanges.php.
References $query, $value, SpecialPage\getConfig(), and ChangesListSpecialPage\getOptions().
Referenced by execute(), and outputFeedLinks().
Whether it's allowed to transclude the special page via {{Special:Foo/params}}.
Reimplemented from SpecialPage.
Definition at line 757 of file SpecialRecentchanges.php.
SpecialRecentChanges::makeOptionsLink | ( | $ | title, |
$ | override, | ||
$ | options, | ||
$ | active = false |
||
) |
Makes change an option link which carries all the other options.
string | $title | Title |
array | $override | Options to override |
array | $options | Current options |
bool | $active | Whether to show the link in bold |
Definition at line 622 of file SpecialRecentchanges.php.
References $options, $params, $title, $value, array(), as, SpecialPage\getPageTitle(), and Linker\linkKnown().
Referenced by optionsPanel().
SpecialRecentChanges::namespaceFilterForm | ( | FormOptions $ | opts | ) | [protected] |
Creates the choose namespace selection.
FormOptions | $opts |
Definition at line 513 of file SpecialRecentchanges.php.
References array(), Xml\checkLabel(), label, SpecialPage\msg(), Html\namespaceSelector(), and text.
Referenced by getExtraOptions().
SpecialRecentChanges::optionsPanel | ( | $ | defaults, |
$ | nondefaults, | ||
$ | numRows | ||
) |
Creates the options panel.
array | $defaults | |
array | $nondefaults | |
int | $numRows | Number of rows in the result to show after this header |
Definition at line 650 of file SpecialRecentchanges.php.
References $key, $link, $options, $params, $timestamp, $user, $value, array(), as, SpecialPage\getConfig(), getCustomFilters(), SpecialPage\getLanguage(), SpecialPage\getUser(), makeOptionsLink(), SpecialPage\msg(), and wfTimestampNow().
Referenced by doHeader().
SpecialRecentChanges::outputChangesList | ( | $ | rows, |
$ | opts | ||
) |
Build and output the actual changes list.
array | $rows | Database rows |
FormOptions | $opts |
Reimplemented from ChangesListSpecialPage.
Definition at line 293 of file SpecialRecentchanges.php.
References $dbr, $limit, array(), as, empty, SpecialPage\getConfig(), SpecialPage\getContext(), ChangesListSpecialPage\getDB(), SpecialPage\getOutput(), SpecialPage\getUser(), SpecialPage\including(), SpecialPage\msg(), ChangesList\newFromContext(), and RecentChange\newFromRow().
Output feed links.
Reimplemented from ChangesListSpecialPage.
Definition at line 264 of file SpecialRecentchanges.php.
References SpecialPage\addFeedLinks(), and getFeedQuery().
SpecialRecentChanges::parseParameters | ( | $ | par, |
FormOptions $ | opts | ||
) |
Process $par and put options found in $opts.
Used when including the page.
string | $par | |
FormOptions | $opts |
Reimplemented from ChangesListSpecialPage.
Reimplemented in SpecialRecentChangesLinked.
Definition at line 110 of file SpecialRecentchanges.php.
SpecialRecentChanges::runMainQueryHook | ( | &$ | tables, |
&$ | fields, | ||
&$ | conds, | ||
&$ | query_options, | ||
&$ | join_conds, | ||
$ | opts | ||
) | [protected] |
Reimplemented from ChangesListSpecialPage.
Definition at line 255 of file SpecialRecentchanges.php.
References $conds, $tables, array(), and wfRunHooks().
Referenced by SpecialRecentChangesLinked\doMainQuery(), and doMainQuery().
SpecialRecentChanges::setTopText | ( | FormOptions $ | opts | ) |
Send the text to be displayed above the options.
FormOptions | $opts | Unused |
Reimplemented from ChangesListSpecialPage.
Reimplemented in SpecialRecentChangesLinked.
Definition at line 437 of file SpecialRecentchanges.php.
References $wgContLang, array(), SpecialPage\getOutput(), global, SpecialPage\msg(), and Html\rawElement().
Referenced by doHeader().
Validate a FormOptions object generated by getDefaultOptions() with values already populated.
FormOptions | $opts |
Reimplemented from ChangesListSpecialPage.
Definition at line 155 of file SpecialRecentchanges.php.
References FormOptions\validateIntBounds().