MediaWiki  REL1_21
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.
 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

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.

References $name.


Member Function Documentation

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

Definition at line 905 of file SpecialRecentchanges.php.

References array(), and SpecialPage\getOutput().

Referenced by execute().

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

Parameters:
$optsFormOptions
Returns:
array

Definition at line 276 of file SpecialRecentchanges.php.

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

Referenced by execute().

Create a input to filter changes by categories.

Parameters:
$optsFormOptions
Returns:
Array

Definition at line 714 of file SpecialRecentchanges.php.

References $input, 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.

Parameters:
$feedFormatString
Returns:
String or false

Definition at line 258 of file SpecialRecentchanges.php.

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

Referenced by execute().

SpecialRecentChanges::doMainQuery ( conds,
opts 
)

Process the query.

Parameters:
$condsArray
$optsFormOptions
Returns:
bool|ResultWrapper result or false (for Recentchangeslinked only)

Reimplemented in SpecialRecentchangeslinked.

Definition at line 369 of file SpecialRecentchanges.php.

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

Referenced by execute().

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 getDefaultOptions(), SpecialPage\getRequest(), and global.

Referenced by getOptions().

Filter $rows by categories set in $opts.

Parameters:
array$rowsof database rows
$optsFormOptions

Definition at line 730 of file SpecialRecentchanges.php.

References $rev, array(), as, Title\makeTitle(), and Categoryfinder\seed().

Referenced by webOutput().

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 array(), and wfRunHooks().

Referenced by optionsPanel(), and setup().

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

Get options to be displayed in a form.

Parameters:
$optsFormOptions
Returns:
Array

Reimplemented in SpecialRecentchangeslinked.

Definition at line 635 of file SpecialRecentchanges.php.

References array(), ChangeTags\buildTagFilterSelector(), categoryFilterForm(), global, namespaceFilterForm(), and wfRunHooks().

Referenced by doHeader().

Return an array with a ChangesFeed object and ChannelFeed object.

Returns:
Array

Reimplemented in SpecialRecentchangeslinked.

Definition at line 188 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.

Returns:
string

Definition at line 550 of file SpecialRecentchanges.php.

References $options, $value, as, getOptions(), global, and wfArrayToCgi().

Referenced by webOutput().

Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.

Returns:
string
Since:
1.21

Reimplemented from SpecialPage.

Definition at line 911 of file SpecialRecentchanges.php.

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

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

Parameters:
$titleTitle
array$overrideoptions to override
array$optionscurrent options
$activeBoolean: whether to show the link in bold
Returns:
string

Definition at line 797 of file SpecialRecentchanges.php.

References $options, $params, $title, $value, array(), as, SpecialPage\getTitle(), and Linker\linkKnown().

Referenced by optionsPanel().

Creates the choose namespace selection.

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

Definition at line 689 of file SpecialRecentchanges.php.

References array(), Xml\checkLabel(), Xml\label(), SpecialPage\msg(), Html\namespaceSelector(), and text.

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

SpecialRecentChanges::optionsPanel ( defaults,
nondefaults 
)

Creates the options panel.

Parameters:
$defaultsArray
$nondefaultsArray
Returns:
string

Definition at line 823 of file SpecialRecentchanges.php.

References $link, $options, $params, $timestamp, $user, $value, array(), as, getCustomFilters(), SpecialPage\getLanguage(), SpecialPage\getUser(), global, makeOptionsLink(), SpecialPage\msg(), text, and wfTimestampNow().

Referenced by doHeader().

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

Parameters:
$parString
$optsFormOptions

Reimplemented in SpecialRecentchangeslinked.

Definition at line 205 of file SpecialRecentchanges.php.

References array(), and as.

Referenced by setup().

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

Parameters:
$optsFormOptions

Reimplemented in SpecialRecentchangeslinked.

Definition at line 680 of file SpecialRecentchanges.php.

Referenced by doHeader().

Send the text to be displayed above the options.

Parameters:
$optsFormOptions

Reimplemented in SpecialRecentchangeslinked.

Definition at line 658 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.

Parameters:
$parametersarray
Returns:
FormOptions

Definition at line 73 of file SpecialRecentchanges.php.

References $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.

Parameters:
array$rowsof database rows
$optsFormOptions

Definition at line 474 of file SpecialRecentchanges.php.

References $dbr, $limit, $s, array(), as, doHeader(), empty, filterByCategories(), SpecialPage\getContext(), getFeedQuery(), SpecialPage\getOutput(), SpecialPage\getUser(), global, SpecialPage\including(), ChangesList\newFromContext(), RecentChange\newFromRow(), and wfGetDB().

Referenced by execute().


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: