MediaWiki
REL1_22
|
A special page that lists last changes made to the wiki. More...
Public Member Functions | |
__construct ($name= 'Recentchanges') | |
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 subclasses. | |
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 | |
addModules () | |
Add page-specific modules. | |
categoryFilterForm (FormOptions $opts) | |
Create a input to filter changes by categories. | |
getCustomFilters () | |
Get custom show/hide filters. | |
getGroupName () | |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'. | |
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.
References $name.
SpecialRecentChanges::addModules | ( | ) | [protected] |
Add page-specific modules.
Definition at line 917 of file SpecialRecentchanges.php.
References array(), and SpecialPage\getOutput().
Referenced by execute().
Return an array of conditions depending of options set in $opts.
FormOptions | $opts |
Definition at line 287 of file SpecialRecentchanges.php.
References $dbr, array(), 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.
FormOptions | $opts |
Definition at line 718 of file SpecialRecentchanges.php.
References array(), Xml\checkLabel(), Xml\inputLabelSep(), list, SpecialPage\msg(), and text.
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.
string | $feedFormat |
Definition at line 268 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.
FormOptions | $opts |
Definition at line 556 of file SpecialRecentchanges.php.
References $count, $form, $key, $name, $out, $t, $value, array(), as, Xml\closeElement(), Xml\fieldset(), getExtraOptions(), SpecialPage\getOutput(), SpecialPage\getTitle(), global, Html\hidden(), SpecialPage\msg(), Xml\openElement(), optionsPanel(), setBottomText(), setTopText(), tags(), and text.
Referenced by execute(), and webOutput().
SpecialRecentChanges::doMainQuery | ( | $ | conds, |
$ | opts | ||
) |
Process the query.
array | $conds | |
FormOptions | $opts |
Reimplemented in SpecialRecentchangeslinked.
Definition at line 381 of file SpecialRecentchanges.php.
References $dbr, $limit, array(), SpecialPage\getUser(), ChangeTags\modifyDisplayQuery(), RecentChange\selectFields(), wfGetDB(), and wfRunHooks().
Referenced by execute().
SpecialRecentChanges::execute | ( | $ | subpage | ) |
Main execution point.
string | $subpage |
Reimplemented from SpecialPage.
Definition at line 143 of file SpecialRecentchanges.php.
References $batch, addModules(), as, buildMainQueryConds(), checkLastModified(), doHeader(), doMainQuery(), getFeedObject(), getOptions(), SpecialPage\getOutput(), SpecialPage\getRequest(), SpecialPage\including(), list, SpecialPage\outputHeader(), SpecialPage\setHeaders(), and webOutput().
Create a FormOptions object specific for feed requests and return it.
Reimplemented in SpecialRecentchangeslinked.
Definition at line 113 of file SpecialRecentchanges.php.
References getDefaultOptions(), SpecialPage\getRequest(), and global.
Referenced by getOptions().
SpecialRecentChanges::filterByCategories | ( | &$ | rows, |
FormOptions $ | opts | ||
) |
Filter $rows by categories set in $opts.
array | $rows | Database rows |
FormOptions | $opts |
Definition at line 734 of file SpecialRecentchanges.php.
References $rev, array(), as, Title\makeTitle(), and Categoryfinder\seed().
Referenced by webOutput().
SpecialRecentChanges::getCustomFilters | ( | ) | [protected] |
Get custom show/hide filters.
Definition at line 99 of file SpecialRecentchanges.php.
References array(), and 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 $user, SpecialPage\getUser(), and FormOptions\INTNULL.
Referenced by feedSetup(), and setup().
SpecialRecentChanges::getExtraOptions | ( | $ | opts | ) |
Get options to be displayed in a form.
FormOptions | $opts |
Reimplemented in SpecialRecentchangeslinked.
Definition at line 630 of file SpecialRecentchanges.php.
References array(), ChangeTags\buildTagFilterSelector(), categoryFilterForm(), SpecialPage\getName(), global, namespaceFilterForm(), and wfRunHooks().
Referenced by doHeader().
SpecialRecentChanges::getFeedObject | ( | $ | feedFormat | ) |
Return an array with a ChangesFeed object and ChannelFeed object.
string | $feedFormat | Feed's format (either 'rss' or 'atom') |
Reimplemented in SpecialRecentchangeslinked.
Definition at line 197 of file SpecialRecentchanges.php.
References array(), SpecialPage\getTitle(), SpecialPage\msg(), and text.
Referenced by execute().
Get the query string to append to feed link URLs.
Definition at line 533 of file SpecialRecentchanges.php.
References $options, $value, as, getOptions(), global, and wfArrayToCgi().
Referenced by webOutput().
SpecialRecentChanges::getGroupName | ( | ) | [protected] |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.
Reimplemented from SpecialPage.
Definition at line 923 of file SpecialRecentchanges.php.
Get the current FormOptions for this request.
Definition at line 125 of file SpecialRecentchanges.php.
References feedSetup(), SpecialPage\getRequest(), SpecialPage\including(), and setup().
Referenced by execute(), getFeedQuery(), and SpecialRecentchangeslinked\getTargetTitle().
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 801 of file SpecialRecentchanges.php.
References $options, $params, $title, $value, array(), as, SpecialPage\getTitle(), and Linker\linkKnown().
Referenced by optionsPanel().
SpecialRecentChanges::namespaceFilterForm | ( | FormOptions $ | opts | ) | [protected] |
Creates the choose namespace selection.
FormOptions | $opts |
Definition at line 692 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 828 of file SpecialRecentchanges.php.
References $key, $link, $options, $params, $timestamp, $user, $value, array(), as, getCustomFilters(), SpecialPage\getLanguage(), SpecialPage\getUser(), global, makeOptionsLink(), SpecialPage\msg(), text, and wfTimestampNow().
Referenced by doHeader().
SpecialRecentChanges::parseParameters | ( | $ | par, |
FormOptions $ | opts | ||
) |
Process $par and put options found if $opts Mainly used when including the page.
string | $par | |
FormOptions | $opts |
Reimplemented in SpecialRecentchangeslinked.
Definition at line 215 of file SpecialRecentchanges.php.
Referenced by setup().
Send the text to be displayed after the options, for use in subclasses.
FormOptions | $opts |
Definition at line 682 of file SpecialRecentchanges.php.
Referenced by doHeader().
SpecialRecentChanges::setTopText | ( | FormOptions $ | opts | ) |
Send the text to be displayed above the options.
FormOptions | $opts | Unused |
Reimplemented in SpecialRecentchangeslinked.
Definition at line 661 of file SpecialRecentchanges.php.
References $wgContLang, array(), SpecialPage\getOutput(), global, SpecialPage\msg(), and Html\rawElement().
Referenced by doHeader().
SpecialRecentChanges::setup | ( | $ | parameters | ) |
Create a FormOptions object with options as specified by the user.
array | $parameters |
Definition at line 75 of file SpecialRecentchanges.php.
References $key, $params, as, 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.
array | $rows | Database rows |
FormOptions | $opts |
Definition at line 446 of file SpecialRecentchanges.php.
References $dbr, $limit, array(), as, doHeader(), empty, filterByCategories(), SpecialPage\getContext(), getFeedQuery(), SpecialPage\getOutput(), SpecialPage\getUser(), global, 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.