MediaWiki
REL1_23
|
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) | |
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 a input to filter changes by categories. | |
getCustomFilters () | |
Get custom show/hide filters. | |
namespaceFilterForm (FormOptions $opts) | |
Creates the choose namespace selection. | |
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 483 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 a input to filter changes by categories.
FormOptions | $opts |
Definition at line 535 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 496 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 358 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(), global, Html\hidden(), ChangesListSpecialPage\makeLegend(), SpecialPage\msg(), Xml\openElement(), optionsPanel(), ChangesListSpecialPage\setBottomText(), setTopText(), tags(), and text.
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(), ChangesListSpecialPage\getDB(), SpecialPage\getUser(), global, ChangeTags\modifyDisplayQuery(), RecentChange\selectFields(), and wfRunHooks().
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 551 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 454 of file SpecialRecentchanges.php.
References array(), ChangeTags\buildTagFilterSelector(), categoryFilterForm(), SpecialPage\getName(), global, 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 267 of file SpecialRecentchanges.php.
References $query, $value, ChangesListSpecialPage\getOptions(), and global.
Referenced by execute(), and outputFeedLinks().
Whether it's allowed to transclude the special page via {{Special:Foo/params}}.
Reimplemented from SpecialPage.
Definition at line 746 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 618 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 509 of file SpecialRecentchanges.php.
References array(), Xml\checkLabel(), label, SpecialPage\msg(), Html\namespaceSelector(), and text.
Referenced by getExtraOptions().
SpecialRecentChanges::optionsPanel | ( | $ | defaults, |
$ | nondefaults | ||
) |
Creates the options panel.
array | $defaults | |
array | $nondefaults |
Definition at line 645 of file SpecialRecentchanges.php.
References $key, $link, $options, $params, $timestamp, $user, $value, array(), as, getCustomFilters(), SpecialPage\getLanguage(), SpecialPage\getUser(), global, 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 287 of file SpecialRecentchanges.php.
References $dbr, $limit, array(), as, empty, SpecialPage\getContext(), ChangesListSpecialPage\getDB(), SpecialPage\getOutput(), SpecialPage\getUser(), global, SpecialPage\msg(), ChangesList\newFromContext(), and RecentChange\newFromRow().
Output feed links.
Reimplemented from ChangesListSpecialPage.
Definition at line 258 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::setTopText | ( | FormOptions $ | opts | ) |
Send the text to be displayed above the options.
FormOptions | $opts | Unused |
Reimplemented from ChangesListSpecialPage.
Reimplemented in SpecialRecentChangesLinked.
Definition at line 432 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().