MediaWiki  REL1_19
SpecialRecentChanges Class Reference

A special page that lists last changes made to the wiki. More...

Inheritance diagram for SpecialRecentChanges:
Collaboration diagram for SpecialRecentChanges:

List of all members.

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

Detailed Description

A special page that lists last changes made to the wiki.

Definition at line 29 of file SpecialRecentchanges.php.


Constructor & Destructor Documentation

SpecialRecentChanges::__construct ( name = 'Recentchanges')

Definition at line 33 of file SpecialRecentchanges.php.


Member Function Documentation

add javascript specific to the [[Special:RecentChanges]] page

Definition at line 864 of file SpecialRecentchanges.php.

References SpecialPage\getOutput().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

Return an array of conditions depending of options set in $opts.

Parameters:
$optsFormOptions
Returns:
array

Definition at line 278 of file SpecialRecentchanges.php.

References $dbr, MWNamespace\getAssociated(), SpecialPage\getName(), SpecialPage\getUser(), FormOptions\reset(), wfGetDB(), and wfTimestamp().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

Create a input to filter changes by categories.

Parameters:
$optsFormOptions
Returns:
Array

Definition at line 685 of file SpecialRecentchanges.php.

References $input, Xml\checkLabel(), Xml\inputLabelSep(), and wfMsg().

Referenced by getExtraOptions().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
$feedFormatString
Returns:
String or false

Definition at line 260 of file SpecialRecentchanges.php.

References $dbr, SpecialPage\getOutput(), SpecialPage\getUser(), and wfGetDB().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

Return the text to be displayed above the changes.

Parameters:
$optsFormOptions
Returns:
String: XHTML

Definition at line 548 of file SpecialRecentchanges.php.

References $count, $out, $t, $wgScript, Xml\closeElement(), Xml\fieldset(), getExtraOptions(), SpecialPage\getOutput(), SpecialPage\getTitle(), Html\hidden(), Xml\openElement(), optionsPanel(), setBottomText(), setTopText(), Xml\tags(), and wfMsg().

Referenced by execute(), and webOutput().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialRecentChanges::doMainQuery ( conds,
opts 
)

Process the query.

Parameters:
$condsArray
$optsFormOptions
Returns:
database result or false (for Recentchangeslinked only)

Reimplemented in SpecialRecentchangeslinked.

Definition at line 371 of file SpecialRecentchanges.php.

References $dbr, $limit, $res, SpecialPage\getUser(), SpecialPage\including(), ChangeTags\modifyDisplayQuery(), wfGetDB(), and wfRunHooks().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

Create a FormOptions object specific for feed requests and return it.

Returns:
FormOptions

Reimplemented in SpecialRecentchangeslinked.

Definition at line 109 of file SpecialRecentchanges.php.

References $wgFeedLimit, getDefaultOptions(), and SpecialPage\getRequest().

Referenced by getOptions().

Here is the call graph for this function:

Here is the caller graph for this function:

Filter $rows by categories set in $opts.

Parameters:
$rowsArray of database rows
$optsFormOptions

Definition at line 701 of file SpecialRecentchanges.php.

References $rows, Title\makeTitle(), and Categoryfinder\seed().

Referenced by webOutput().

Here is the call graph for this function:

Here is the caller graph for this function:

Get custom show/hide filters.

Returns:
Array Map of filter URL param names to properties (msg/default)

Definition at line 96 of file SpecialRecentchanges.php.

References wfRunHooks().

Referenced by optionsPanel(), and setup().

Here is the call graph for this function:

Here is the caller graph for this function:

Get a FormOptions object containing the default options.

Returns:
FormOptions

Reimplemented in SpecialRecentchangeslinked.

Definition at line 42 of file SpecialRecentchanges.php.

References SpecialPage\getUser(), and FormOptions\INTNULL.

Referenced by feedSetup(), and setup().

Here is the call graph for this function:

Here is the caller graph for this function:

Get options to be displayed in a form.

Parameters:
$optsFormOptions
Returns:
Array

Reimplemented in SpecialRecentchangeslinked.

Definition at line 610 of file SpecialRecentchanges.php.

References $wgAllowCategorizedRecentChanges, ChangeTags\buildTagFilterSelector(), categoryFilterForm(), namespaceFilterForm(), and wfRunHooks().

Referenced by doHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

Return an array with a ChangesFeed object and ChannelFeed object.

Returns:
Array

Reimplemented in SpecialRecentchangeslinked.

Definition at line 190 of file SpecialRecentchanges.php.

References SpecialPage\getTitle(), and wfMsgForContent().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

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 538 of file SpecialRecentchanges.php.

Referenced by webOutput().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialRecentChanges::makeOptionsLink ( title,
override,
options,
active = false 
)

Makes change an option link which carries all the other options.

Parameters:
$titleTitle
$overrideArray: options to override
$optionsArray: current options
$activeBoolean: whether to show the link in bold

Definition at line 767 of file SpecialRecentchanges.php.

References $options, $title, SpecialPage\getTitle(), and Linker\linkKnown().

Referenced by optionsPanel().

Here is the call graph for this function:

Here is the caller graph for this function:

Creates the choose namespace selection.

Todo:
Uses radio buttons (HASHAR)
Parameters:
$optsFormOptions
Returns:
String

Definition at line 660 of file SpecialRecentchanges.php.

References Xml\checkLabel(), Xml\label(), Html\namespaceSelector(), and wfMsg().

Referenced by SpecialRecentchangeslinked\getExtraOptions(), and getExtraOptions().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialRecentChanges::optionsPanel ( defaults,
nondefaults 
)

Creates the options panel.

Parameters:
$defaultsArray
$nondefaultsArray

Definition at line 782 of file SpecialRecentchanges.php.

References $options, $wgRCLinkDays, $wgRCLinkLimits, getCustomFilters(), SpecialPage\getLanguage(), SpecialPage\getUser(), makeOptionsLink(), wfEmptyMsg(), wfMsg(), wfMsgExt(), wfMsgHtml(), and wfTimestampNow().

Referenced by doHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

Process $par and put options found if $opts Mainly used when including the page.

Parameters:
$parString
$optsFormOptions

Reimplemented in SpecialRecentchangeslinked.

Definition at line 207 of file SpecialRecentchanges.php.

Referenced by setup().

Here is the caller graph for this function:

Send the text to be displayed after the options, for use in Recentchangeslinked.

Parameters:
$optsFormOptions

Reimplemented in SpecialRecentchangeslinked.

Definition at line 651 of file SpecialRecentchanges.php.

Referenced by doHeader().

Here is the caller graph for this function:

Send the text to be displayed above the options.

Parameters:
$optsFormOptions

Reimplemented in SpecialRecentchangeslinked.

Definition at line 633 of file SpecialRecentchanges.php.

References $wgContLang, SpecialPage\getOutput(), Html\rawElement(), and wfMsgForContentNoTrans().

Referenced by doHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialRecentChanges::setup ( parameters)

Create a FormOptions object with options as specified by the user.

Parameters:
$parametersarray
Returns:
FormOptions

Definition at line 73 of file SpecialRecentchanges.php.

References getCustomFilters(), getDefaultOptions(), SpecialPage\getRequest(), and parseParameters().

Referenced by getOptions().

Here is the call graph for this function:

Here is the caller graph for this function:

SpecialRecentChanges::webOutput ( rows,
opts 
)

Send output to the OutputPage object, only called if not used feeds.

Parameters:
$rowsArray of database rows
$optsFormOptions

Definition at line 472 of file SpecialRecentchanges.php.

References $dbr, $limit, $rows, $wgAllowCategorizedRecentChanges, $wgRCShowWatchingUsers, $wgShowUpdatedMarker, doHeader(), filterByCategories(), SpecialPage\getContext(), getFeedQuery(), SpecialPage\getOutput(), SpecialPage\getUser(), SpecialPage\including(), ChangesList\newFromContext(), RecentChange\newFromRow(), and wfGetDB().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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.


The documentation for this class was generated from the following file: