SpecialRecentChanges Class Reference
[SpecialPage]

Implements Special:Recentchanges. More...

Inherits SpecialPage.

List of all members.

Public Member Functions

 __construct ()
 getDefaultOptions ()
 Get a FormOptions object containing the default options.
 setup ($parameters)
 Get a FormOptions object with options as specified by the user.
 feedSetup ()
 Get a FormOptions object sepcific for feed requests.
 execute ($parameters)
 Main execution point.
 getFeedObject ($feedFormat)
 Return an array with a ChangesFeed object and ChannelFeed object.
 parseParameters ($par, FormOptions $opts)
 Process $par and put options found if $opts Mainly used when including the page.
 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.
 buildMainQueryConds (FormOptions $opts)
 Return an array of conditions depending of options set in $opts.
 doMainQuery ($conds, $opts)
 Process the query.
 webOutput ($rows, $opts)
 Send output to $wgOut, only called if not used feeds.
 doHeader ($opts)
 Return the text to be displayed above the changes.
 getExtraOptions ($opts)
 Get options to be displayed in a form.
 setTopText (OutputPage $out, FormOptions $opts)
 Send the text to be displayed above the options.
 setBottomText (OutputPage $out, FormOptions $opts)
 Send the text to be displayed after the options, for use in Recentchangeslinked.
 filterByCategories (&$rows, FormOptions $opts)
 Filter $rows by categories set in $opts.
 makeOptionsLink ($title, $override, $options, $active=false)
 Makes change an option link which carries all the other options.
 optionsPanel ($defaults, $nondefaults)
 Creates the options panel.

Protected Member Functions

 namespaceFilterForm (FormOptions $opts)
 Creates the choose namespace selection.
 categoryFilterForm (FormOptions $opts)
 Create a input to filter changes by categories.


Detailed Description

Implements Special:Recentchanges.

Definition at line 7 of file SpecialRecentchanges.php.


Constructor & Destructor Documentation

SpecialRecentChanges::__construct (  ) 

Definition at line 8 of file SpecialRecentchanges.php.

References SpecialPage::includable().


Member Function Documentation

SpecialRecentChanges::buildMainQueryConds ( FormOptions opts  ) 

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

Parameters:
$opts FormOptions
Returns:
array

Definition at line 196 of file SpecialRecentchanges.php.

References $conds, $dbr, $wgUser, FormOptions::reset(), wfGetDB(), and wfTimestamp().

Referenced by execute().

SpecialRecentChanges::categoryFilterForm ( FormOptions opts  )  [protected]

Create a input to filter changes by categories.

Parameters:
$opts FormOptions
Returns:
array

Definition at line 523 of file SpecialRecentchanges.php.

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

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.

Parameters:
$feedFormat String
Returns:
string or false

Definition at line 177 of file SpecialRecentchanges.php.

References $dbr, $wgOut, $wgUseRCPatrol, and wfGetDB().

Referenced by execute().

SpecialRecentChanges::doHeader ( opts  ) 

Return the text to be displayed above the changes.

Parameters:
$opts FormOptions
Returns:
String: XHTML

Definition at line 409 of file SpecialRecentchanges.php.

References $count, $defaults, $key, $out, $t, $wgOut, $wgScript, Xml::closeElement(), Xml::fieldset(), getExtraOptions(), SpecialPage::getTitle(), Xml::hidden(), Xml::openElement(), optionsPanel(), setBottomText(), setTopText(), Xml::tags(), and wfMsg().

Referenced by execute(), and webOutput().

SpecialRecentChanges::doMainQuery ( conds,
opts 
)

Process the query.

Parameters:
$conds array
$opts FormOptions
Returns:
database result or false (for Recentchangeslinked only)

Definition at line 268 of file SpecialRecentchanges.php.

References $conds, $dbr, $fields, $res, $sql, $wgUser, ChangeTags::modifyDisplayQuery(), wfGetDB(), and wfRunHooks().

Referenced by execute().

SpecialRecentChanges::execute ( parameters  ) 

SpecialRecentChanges::feedSetup (  ) 

Get a FormOptions object sepcific for feed requests.

Returns:
FormOptions

Definition at line 67 of file SpecialRecentchanges.php.

References $wgFeedLimit, $wgRequest, and getDefaultOptions().

Referenced by execute().

SpecialRecentChanges::filterByCategories ( &$  rows,
FormOptions opts 
)

Filter $rows by categories set in $opts.

Parameters:
$rows array of database rows
$opts FormOptions

Definition at line 539 of file SpecialRecentchanges.php.

References $rows, and Title::makeTitle().

Referenced by webOutput().

SpecialRecentChanges::getDefaultOptions (  ) 

Get a FormOptions object containing the default options.

Returns:
FormOptions

Definition at line 18 of file SpecialRecentchanges.php.

References $wgUser, and FormOptions::INTNULL.

Referenced by feedSetup(), and setup().

SpecialRecentChanges::getExtraOptions ( opts  ) 

Get options to be displayed in a form.

Parameters:
$opts FormOptions
Returns:
array

Definition at line 468 of file SpecialRecentchanges.php.

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

Referenced by doHeader().

SpecialRecentChanges::getFeedObject ( feedFormat  ) 

Return an array with a ChangesFeed object and ChannelFeed object.

Returns:
array

Definition at line 133 of file SpecialRecentchanges.php.

References wfMsgForContent().

Referenced by execute().

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

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

Parameters:
$title see Title
$override 
$options 

Definition at line 596 of file SpecialRecentchanges.php.

References $options, $title, $wgUser, and SpecialPage::getTitle().

Referenced by optionsPanel().

SpecialRecentChanges::namespaceFilterForm ( FormOptions opts  )  [protected]

Creates the choose namespace selection.

Parameters:
$opts FormOptions
Returns:
string

Definition at line 510 of file SpecialRecentchanges.php.

References Xml::checkLabel(), Xml::label(), Xml::namespaceSelector(), and wfMsg().

Referenced by getExtraOptions().

SpecialRecentChanges::optionsPanel ( defaults,
nondefaults 
)

Creates the options panel.

Parameters:
$defaults array
$nondefaults array

Definition at line 609 of file SpecialRecentchanges.php.

References $defaults, $options, $wgLang, $wgRCLinkDays, $wgRCLinkLimits, $wgUser, makeOptionsLink(), sort, wfEmptyMsg(), wfMsg(), wfMsgExt(), wfMsgHtml(), and wfTimestampNow().

Referenced by doHeader().

SpecialRecentChanges::parseParameters ( par,
FormOptions opts 
)

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

Parameters:
$par String
$opts FormOptions

Definition at line 149 of file SpecialRecentchanges.php.

Referenced by setup().

SpecialRecentChanges::setBottomText ( OutputPage out,
FormOptions opts 
)

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

Parameters:
$out OutputPage
$opts FormOptions

Definition at line 502 of file SpecialRecentchanges.php.

Referenced by doHeader().

SpecialRecentChanges::setTopText ( OutputPage out,
FormOptions opts 
)

Send the text to be displayed above the options.

Parameters:
$out OutputPage
$opts FormOptions

Definition at line 491 of file SpecialRecentchanges.php.

References OutputPage::addWikiText(), and wfMsgForContentNoTrans().

Referenced by doHeader().

SpecialRecentChanges::setup ( parameters  ) 

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

Returns:
FormOptions

Definition at line 47 of file SpecialRecentchanges.php.

References $wgRequest, getDefaultOptions(), and parseParameters().

Referenced by execute().

SpecialRecentChanges::webOutput ( rows,
opts 
)

Send output to $wgOut, only called if not used feeds.

Parameters:
$rows array of database rows
$opts FormOptions

Definition at line 344 of file SpecialRecentchanges.php.

References $counter, $dbr, $obj, $rows, $s, $wgAllowCategorizedRecentChanges, $wgOut, $wgRCShowWatchingUsers, $wgShowUpdatedMarker, $wgUser, doHeader(), filterByCategories(), SpecialPage::including(), RecentChange::newFromRow(), ChangesList::newFromUser(), and wfGetDB().

Referenced by execute().


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

Generated on Sat Sep 5 02:08:47 2009 for MediaWiki by  doxygen 1.5.9