MediaWiki
REL1_24
|
Special page which uses a ChangesList to show query results. More...
Public Member Functions | |
buildMainQueryConds (FormOptions $opts) | |
Return an array of conditions depending of options set in $opts. | |
doHeader ($opts, $numRows) | |
Set the text to be displayed above the changes. | |
doMainQuery ($conds, $opts) | |
Process the query. | |
execute ($subpage) | |
Main execution point. | |
getDefaultOptions () | |
Get a FormOptions object containing the default options. | |
getExtraOptions ($opts) | |
Get options to be displayed in a form. | |
getOptions () | |
Get the current FormOptions for this request. | |
getRows () | |
Get the database result for this special page instance. | |
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. | |
setBottomText (FormOptions $opts) | |
Send the text to be displayed after the options. | |
setTopText (FormOptions $opts) | |
Send the text to be displayed before the options. | |
setup ($parameters) | |
Create a FormOptions object with options as specified by the user. | |
validateOptions (FormOptions $opts) | |
Validate a FormOptions object generated by getDefaultOptions() with values already populated. | |
webOutput ($rows, $opts) | |
Send output to the OutputPage object, only called if not used feeds. | |
Static Public Member Functions | |
static | makeLegend (IContextSource $context) |
Return the legend displayed within the fieldset. | |
Protected Member Functions | |
addModules () | |
Add page-specific modules. | |
fetchOptionsFromRequest ($opts) | |
Fetch values for a FormOptions object from the WebRequest associated with this instance. | |
getCustomFilters () | |
Get custom show/hide filters. | |
getDB () | |
Return a DatabaseBase object for reading. | |
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'. | |
runMainQueryHook (&$tables, &$fields, &$conds, &$query_options, &$join_conds, $opts) | |
Protected Attributes | |
array | $customFilters |
* | |
FormOptions | $rcOptions |
* | |
string | $rcSubpage |
* |
Special page which uses a ChangesList to show query results.
Definition at line 30 of file ChangesListSpecialPage.php.
ChangesListSpecialPage::addModules | ( | ) | [protected] |
Add page-specific modules.
Reimplemented in SpecialRecentChanges.
Definition at line 455 of file ChangesListSpecialPage.php.
Return an array of conditions depending of options set in $opts.
FormOptions | $opts |
Reimplemented in SpecialWatchlist, and SpecialRecentChanges.
Definition at line 199 of file ChangesListSpecialPage.php.
ChangesListSpecialPage::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 in SpecialWatchlist, and SpecialRecentChanges.
Definition at line 361 of file ChangesListSpecialPage.php.
ChangesListSpecialPage::doMainQuery | ( | $ | conds, |
$ | opts | ||
) |
Process the query.
array | $conds | |
FormOptions | $opts |
Reimplemented in SpecialWatchlist, SpecialRecentChanges, and SpecialRecentChangesLinked.
Definition at line 276 of file ChangesListSpecialPage.php.
ChangesListSpecialPage::execute | ( | $ | subpage | ) |
Main execution point.
string | $subpage |
Reimplemented from SpecialPage.
Reimplemented in SpecialRecentChanges, and SpecialWatchlist.
Definition at line 42 of file ChangesListSpecialPage.php.
ChangesListSpecialPage::fetchOptionsFromRequest | ( | $ | opts | ) | [protected] |
Fetch values for a FormOptions object from the WebRequest associated with this instance.
Intended for subclassing, e.g. to add a backwards-compatibility layer.
FormOptions | $opts |
Reimplemented in SpecialWatchlist.
Definition at line 168 of file ChangesListSpecialPage.php.
ChangesListSpecialPage::getCustomFilters | ( | ) | [protected] |
Get custom show/hide filters.
Reimplemented in SpecialWatchlist, and SpecialRecentChanges.
Definition at line 151 of file ChangesListSpecialPage.php.
ChangesListSpecialPage::getDB | ( | ) | [protected] |
Return a DatabaseBase object for reading.
Reimplemented in SpecialWatchlist.
Definition at line 321 of file ChangesListSpecialPage.php.
Referenced by SpecialRecentChanges\buildMainQueryConds(), SpecialRecentChanges\checkLastModified(), SpecialRecentChanges\doMainQuery(), and SpecialRecentChanges\outputChangesList().
Get a FormOptions object containing the default options.
By default returns some basic options, you might want to not call parent method and discard them, or to override default values.
Reimplemented in SpecialWatchlist, SpecialRecentChanges, and SpecialRecentChangesLinked.
Definition at line 129 of file ChangesListSpecialPage.php.
ChangesListSpecialPage::getExtraOptions | ( | $ | opts | ) |
Get options to be displayed in a form.
FormOptions | $opts |
Reimplemented in SpecialRecentChanges, and SpecialRecentChangesLinked.
Definition at line 397 of file ChangesListSpecialPage.php.
ChangesListSpecialPage::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 462 of file ChangesListSpecialPage.php.
Get the current FormOptions for this request.
Definition at line 90 of file ChangesListSpecialPage.php.
Referenced by SpecialWatchlist\execute(), and SpecialRecentChanges\getFeedQuery().
Get the database result for this special page instance.
Used by ApiFeedRecentChanges.
Definition at line 78 of file ChangesListSpecialPage.php.
static ChangesListSpecialPage::makeLegend | ( | IContextSource $ | context | ) | [static] |
Return the legend displayed within the fieldset.
This should not be static, then we can drop the parameter
Not called by anything, should be called by doHeader()
IContextSource | $context | The object available as $this in non-static functions |
Definition at line 409 of file ChangesListSpecialPage.php.
Referenced by SpecialRecentChanges\doHeader(), and SpecialWatchlist\setTopText().
ChangesListSpecialPage::outputChangesList | ( | $ | rows, |
$ | opts | ||
) | [abstract] |
Build and output the actual changes list.
array | $rows | Database rows |
FormOptions | $opts |
Reimplemented in SpecialWatchlist, and SpecialRecentChanges.
Output feed links.
Reimplemented in SpecialWatchlist, and SpecialRecentChanges.
Definition at line 343 of file ChangesListSpecialPage.php.
ChangesListSpecialPage::parseParameters | ( | $ | par, |
FormOptions $ | opts | ||
) |
Process $par and put options found in $opts.
Used when including the page.
string | $par | |
FormOptions | $opts |
Reimplemented in SpecialRecentChanges, and SpecialRecentChangesLinked.
Definition at line 180 of file ChangesListSpecialPage.php.
ChangesListSpecialPage::runMainQueryHook | ( | &$ | tables, |
&$ | fields, | ||
&$ | conds, | ||
&$ | query_options, | ||
&$ | join_conds, | ||
$ | opts | ||
) | [protected] |
Reimplemented in SpecialWatchlist, and SpecialRecentChanges.
Definition at line 309 of file ChangesListSpecialPage.php.
Send the text to be displayed after the options.
Should use $this->getOutput()->addWikiText() or similar methods to print the text.
FormOptions | $opts |
Definition at line 385 of file ChangesListSpecialPage.php.
Referenced by SpecialRecentChanges\doHeader(), and SpecialWatchlist\doHeader().
Send the text to be displayed before the options.
Should use $this->getOutput()->addWikiText() or similar methods to print the text.
FormOptions | $opts |
Reimplemented in SpecialWatchlist, SpecialRecentChanges, and SpecialRecentChangesLinked.
Definition at line 375 of file ChangesListSpecialPage.php.
ChangesListSpecialPage::setup | ( | $ | parameters | ) |
Create a FormOptions object with options as specified by the user.
array | $parameters |
Definition at line 105 of file ChangesListSpecialPage.php.
Validate a FormOptions object generated by getDefaultOptions() with values already populated.
FormOptions | $opts |
Reimplemented in SpecialRecentChanges.
Definition at line 189 of file ChangesListSpecialPage.php.
ChangesListSpecialPage::webOutput | ( | $ | rows, |
$ | opts | ||
) |
Send output to the OutputPage object, only called if not used feeds.
ResultWrapper | $rows | Database rows |
FormOptions | $opts |
Definition at line 331 of file ChangesListSpecialPage.php.
array ChangesListSpecialPage::$customFilters [protected] |
*
Definition at line 35 of file ChangesListSpecialPage.php.
FormOptions ChangesListSpecialPage::$rcOptions [protected] |
*
Definition at line 33 of file ChangesListSpecialPage.php.
string ChangesListSpecialPage::$rcSubpage [protected] |
*
Definition at line 31 of file ChangesListSpecialPage.php.