Go to the documentation of this file.
36 parent::__construct(
$name, $restriction );
47 $feedFormat = $this->
getRequest()->getVal(
'feed' );
48 if ( !$this->
including() && $feedFormat ) {
50 $query[
'feedformat'] = $feedFormat ===
'atom' ?
'atom' :
'rss';
58 $out->setCdnMaxage( 10 );
61 if ( $lastmod ===
false ) {
66 '//meta.wikimedia.org/wiki/Special:MyLanguage/Help:Recent_changes',
75 foreach ( $jsData[
'messageKeys']
as $key ){
80 ResourceLoader::makeInlineScript(
81 ResourceLoader::makeMessageSetScript(
$messages )
85 $out->addJsConfigVars(
'wgStructuredChangeFilters', $jsData[
'groups'] );
93 if ( isset( $filterDefinition[
'showHideSuffix'] ) ) {
94 $filterDefinition[
'showHide'] =
'rc' . $filterDefinition[
'showHideSuffix'];
97 return $filterDefinition;
104 parent::registerFilters();
109 $hideMinor = $significance->getFilter(
'hideminor' );
110 $hideMinor->setDefault(
$user->getBoolOption(
'hideminor' ) );
113 $hideBots = $automated->getFilter(
'hidebots' );
114 $hideBots->setDefault(
true );
117 if ( $reviewStatus !==
null ) {
119 $hidePatrolled = $reviewStatus->getFilter(
'hidepatrolled' );
120 $hidePatrolled->setDefault(
$user->getBoolOption(
'hidepatrolled' ) );
124 $hideCategorization = $changeType->getFilter(
'hidecategorization' );
125 if ( $hideCategorization !==
null ) {
127 $hideCategorization->setDefault(
$user->getBoolOption(
'hidecategorization' ) );
137 $opts = parent::getDefaultOptions();
140 $opts->add(
'days',
$user->getIntOption(
'rcdays' ) );
141 $opts->add(
'limit',
$user->getIntOption(
'rclimit' ) );
142 $opts->add(
'from',
'' );
144 $opts->add(
'categories',
'' );
145 $opts->add(
'categories_any',
false );
146 $opts->add(
'tagfilter',
'' );
157 if ( $this->customFilters ===
null ) {
158 $this->customFilters = parent::getCustomFilters();
159 Hooks::run(
'SpecialRecentChangesFilters', [ $this, &$this->customFilters ],
'1.23' );
172 parent::parseParameters( $par, $opts );
174 $bits = preg_split(
'/\s*,\s*/', trim( $par ) );
175 foreach ( $bits
as $bit ) {
176 if ( is_numeric( $bit ) ) {
177 $opts[
'limit'] = $bit;
181 if ( preg_match(
'/^limit=(\d+)$/', $bit, $m ) ) {
182 $opts[
'limit'] = $m[1];
184 if ( preg_match(
'/^days=(\d+)$/', $bit, $m ) ) {
185 $opts[
'days'] = $m[1];
187 if ( preg_match(
'/^namespace=(\d+)$/', $bit, $m ) ) {
188 $opts[
'namespace'] = $m[1];
190 if ( preg_match(
'/^tagfilter=(.*)$/', $bit, $m ) ) {
191 $opts[
'tagfilter'] = $m[1];
198 parent::validateOptions( $opts );
205 &$query_options, &$join_conds,
FormOptions $opts ) {
208 parent::buildQuery(
$tables, $fields, $conds,
209 $query_options, $join_conds, $opts );
212 $cutoff_unixtime = time() - ( $opts[
'days'] * 86400 );
213 $cutoff_unixtime = $cutoff_unixtime - ( $cutoff_unixtime % 86400 );
214 $cutoff =
$dbr->timestamp( $cutoff_unixtime );
216 $fromValid = preg_match(
'/^[0-9]{14}$/', $opts[
'from'] );
217 if ( $fromValid && $opts[
'from'] >
wfTimestamp( TS_MW, $cutoff ) ) {
218 $cutoff =
$dbr->timestamp( $opts[
'from'] );
220 $opts->
reset(
'from' );
223 $conds[] =
'rc_timestamp >= ' .
$dbr->addQuotes( $cutoff );
239 if (
$user->getId() &&
$user->isAllowed(
'viewmywatchlist' ) ) {
241 $fields[] =
'wl_user';
242 $fields[] =
'wl_notificationtimestamp';
243 $join_conds[
'watchlist'] = [
'LEFT JOIN', [
244 'wl_user' =>
$user->getId(),
246 'wl_namespace=rc_namespace'
250 if (
$user->isAllowed(
'rollback' ) ) {
252 $fields[] =
'page_latest';
253 $join_conds[
'page'] = [
'LEFT JOIN',
'rc_cur_id=page_id' ];
279 $query_options = array_merge( [
280 'ORDER BY' =>
'rc_timestamp DESC',
281 'LIMIT' => $opts[
'limit'] ], $query_options );
282 $rows =
$dbr->select(
287 $conds + [
'rc_new' => [ 0, 1 ] ],
294 if ( $this->
getConfig()->
get(
'AllowCategorizedRecentChanges' ) ) {
302 &$query_options, &$join_conds, $opts
304 return parent::runMainQueryHook(
$tables, $fields, $conds, $query_options, $join_conds, $opts )
306 'SpecialRecentChangesQuery',
307 [ &$conds, &
$tables, &$join_conds, $opts, &$query_options, &$fields ],
330 $query[
'action'] =
'feedrecentchanges';
331 $feedLimit = $this->
getConfig()->get(
'FeedLimit' );
332 if ( $query[
'limit'] > $feedLimit ) {
333 $query[
'limit'] = $feedLimit;
348 $showWatcherCount = $this->
getConfig()->get(
'RCShowWatchingUsers' )
349 && $this->
getUser()->getOption(
'shownumberswatching' );
356 $list->initChangesListRows( $rows );
358 $userShowHiddenCats = $this->
getUser()->getBoolOption(
'showhiddencats' );
359 $rclistOutput = $list->beginRecentChangesList();
360 foreach ( $rows
as $obj ) {
366 # Skip CatWatch entries for hidden cats based on user preference
369 !$userShowHiddenCats &&
370 $rc->getParam(
'hidden-cat' )
375 $rc->counter = $counter++;
376 # Check if the page has been updated since the last visit
377 if ( $this->
getConfig()->get(
'ShowUpdatedMarker' )
378 && !empty( $obj->wl_notificationtimestamp )
380 $rc->notificationtimestamp = ( $obj->rc_timestamp >= $obj->wl_notificationtimestamp );
382 $rc->notificationtimestamp =
false;
384 # Check the number of users watching the page
385 $rc->numberofWatchingusers = 0;
386 if ( $showWatcherCount && $obj->rc_namespace >= 0 ) {
387 if ( !isset( $watcherCache[$obj->rc_namespace][$obj->rc_title] ) ) {
388 $watcherCache[$obj->rc_namespace][$obj->rc_title] =
389 MediaWikiServices::getInstance()->getWatchedItemStore()->countWatchers(
390 new TitleValue( (
int)$obj->rc_namespace, $obj->rc_title )
393 $rc->numberofWatchingusers = $watcherCache[$obj->rc_namespace][$obj->rc_title];
396 $changeLine = $list->recentChangesLine( $rc, !empty( $obj->wl_user ), $counter );
397 if ( $changeLine !==
false ) {
398 $rclistOutput .= $changeLine;
402 $rclistOutput .= $list->endRecentChangesList();
404 if ( $rows->numRows() === 0 ) {
407 $this->
getOutput()->setStatusCode( 404 );
410 $this->
getOutput()->addHTML( $rclistOutput );
423 $defaults = $opts->getAllValues();
424 $nondefaults = $opts->getChangedValues();
428 $panel[] = $this->
optionsPanel( $defaults, $nondefaults, $numRows );
432 $extraOptsCount =
count( $extraOpts );
437 foreach ( $extraOpts
as $name => $optionRow ) {
438 # Add submit button to the last row only
440 $addSubmit = ( $count === $extraOptsCount ) ? $submit :
'';
443 if ( is_array( $optionRow ) ) {
446 [
'class' =>
'mw-label mw-' .
$name .
'-label' ],
451 [
'class' =>
'mw-input' ],
452 $optionRow[1] . $addSubmit
457 [
'class' =>
'mw-input',
'colspan' => 2 ],
458 $optionRow . $addSubmit
465 $unconsumed = $opts->getUnconsumedValues();
466 foreach ( $unconsumed
as $key =>
$value ) {
474 $panelString = implode(
"\n", $panel );
477 $this->
msg(
'recentchanges-legend' )->
text(),
479 [
'class' =>
'rcoptions' ]
483 if ( $this->
getUser()->getOption(
'rcenhancedfilters' ) ) {
486 [
'class' =>
'rcfilters-container' ]
493 [
'class' =>
'rcfilters-head' ],
494 $rcfilterContainer . $rcoptions
498 $this->
getOutput()->addHTML( $rcoptions );
512 $message = $this->
msg(
'recentchangestext' )->inContentLanguage();
513 if ( !$message->isDisabled() ) {
516 [
'lang' => $wgContLang->getHtmlCode(),
'dir' =>
$wgContLang->getDir() ],
517 "\n" . $message->plain() .
"\n"
532 $opts->consumeValues( [
533 'namespace',
'invert',
'associated',
'tagfilter',
'categories',
'categories_any'
539 if ( $this->
getConfig()->
get(
'AllowCategorizedRecentChanges' ) ) {
544 $opts[
'tagfilter'],
false, $this->
getContext() );
545 if (
count( $tagFilter ) ) {
546 $extraOpts[
'tagfilter'] = $tagFilter;
550 if ( $this->
getName() ===
'Recentchanges' ) {
551 Hooks::run(
'SpecialRecentChangesPanel', [ &$extraOpts, $opts ] );
563 return $this->
getUser()->getOption(
572 parent::addModules();
574 $out->addModules(
'mediawiki.special.recentchanges' );
576 $out->addModules(
'mediawiki.rcfilters.filters.ui' );
577 $out->addModuleStyles(
'mediawiki.rcfilters.filters.base.styles' );
590 $lastmod =
$dbr->selectField(
'recentchanges',
'MAX(rc_timestamp)',
false, __METHOD__ );
603 [
'selected' => $opts[
'namespace'],
'all' =>
'' ],
604 [
'name' =>
'namespace',
'id' =>
'namespace' ]
608 $this->
msg(
'invert' )->
text(),
'invert',
'nsinvert',
610 [
'title' => $this->
msg(
'tooltip-invert' )->
text() ]
613 $this->
msg(
'namespace_association' )->
text(),
'associated',
'nsassociated',
615 [
'title' => $this->
msg(
'tooltip-namespace_association' )->
text() ]
618 return [ $nsLabel,
"$nsSelect $invert $associated" ];
629 'categories',
'mw-categories',
false, $opts[
'categories'] );
632 'categories_any',
'mw-categories_any', $opts[
'categories_any'] );
634 return [ $label,
$input ];
644 $categories = array_map(
'trim', explode(
'|', $opts[
'categories'] ) );
646 if ( !
count( $categories ) ) {
652 foreach ( $categories
as $cat ) {
664 foreach ( $rows
as $k => $r ) {
666 $id = $nt->getArticleID();
668 continue; #
Page might have been deleted...
670 if ( !in_array( $id, $articles ) ) {
673 if ( !isset( $a2r[$id] ) ) {
681 if ( !
count( $articles ) || !
count( $cats ) ) {
687 $catFind->
seed( $articles, $cats, $opts[
'categories_any'] ?
'OR' :
'AND' );
688 $match = $catFind->run();
692 foreach ( $match
as $id ) {
693 foreach ( $a2r[$id]
as $rev ) {
695 $newrows[$k] = $rowsarr[$k];
727 'data-params' => json_encode( $override ),
728 'data-keys' => implode(
',', array_keys( $override ) ),
741 $options = $nondefaults + $defaults;
744 $msg = $this->
msg(
'rclegend' );
745 if ( !$msg->isDisabled() ) {
746 $note .=
'<div class="mw-rclegend">' . $msg->parse() .
"</div>\n";
754 [
'from' =>
'' ], $nondefaults );
756 $note .= $this->
msg(
'rcnotefrom' )
763 ->numParams( $numRows )
767 [
'class' =>
'rcoptions-listfromreset' ],
768 $this->
msg(
'parentheses' )->rawParams( $resetLink )->parse()
773 # Sort data for display and make sure it's unique after we've added user data.
774 $linkLimits = $config->get(
'RCLinkLimits' );
777 $linkLimits = array_unique( $linkLimits );
779 $linkDays = $config->get(
'RCLinkDays' );
782 $linkDays = array_unique( $linkDays );
790 $cl =
$lang->pipeList( $cl );
798 $dl =
$lang->pipeList( $dl );
800 $showhide = [
'show',
'hide' ];
808 if ( !$group->isPerGroupRequestParameter() ) {
809 foreach ( $group->getFilters()
as $key => $filter ) {
810 if ( $filter->displaysOnUnstructuredUi( $this ) ) {
811 $msg = $filter->getShowHide();
812 $linkMessage = $this->
msg( $msg .
'-' . $showhide[1 -
$options[$key]] );
815 if ( !$linkMessage->exists() ) {
816 $linkMessage = $this->
msg( $showhide[1 -
$options[$key]] );
820 [ $key => 1 -
$options[$key] ], $nondefaults );
823 'class' =>
"$msg rcshowhideoption",
824 'data-filter-name' => $filter->getName(),
827 if ( $filter->isFeatureAvailableOnStructuredUi( $this ) ) {
828 $attribs[
'data-feature-in-structured-ui'] =
true;
834 $this->
msg( $msg )->rawParams(
$link )->escaped()
843 $now =
$lang->userTimeAndDate( $timestamp,
$user );
844 $timenow =
$lang->userTime( $timestamp,
$user );
845 $datenow =
$lang->userDate( $timestamp,
$user );
846 $pipedLinks =
'<span class="rcshowhide">' .
$lang->pipeList( $links ) .
'</span>';
848 $rclinks =
'<span class="rclinks">' . $this->
msg(
'rclinks' )->rawParams( $cl, $dl,
'' )
849 ->parse() .
'</span>';
852 $this->
msg(
'rclistfrom' )->rawParams( $now, $timenow, $datenow )->parse(),
853 [
'from' => $timestamp ],
857 return "{$note}$rclinks<br />$pipedLinks<br />$rclistfrom";
getPageTitle( $subpage=false)
Get a self-referential title object.
Interface for type hinting (accepts WikiPage, Article, ImagePage, CategoryPage)
error also a ContextSource you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext $context
Marks HTML that shouldn't be escaped.
parseParameters( $par, FormOptions $opts)
Process $par and put options found in $opts.
doMainQuery( $tables, $fields, $conds, $query_options, $join_conds, FormOptions $opts)
Process the query.Array of tables; see IDatabase::select $table Array of fields; see IDatabase::selec...
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist & $tables
static tags( $element, $attribs=null, $contents)
Same as Xml::element(), but does not escape contents.
getOutput()
Get the OutputPage being used for this instance.
isStructuredFilterUiEnabled()
Check whether the structured filter UI is enabled.
if(!isset( $args[0])) $lang
filterByCategories(&$rows, FormOptions $opts)
Filter $rows by categories set in $opts.
namespaceFilterForm(FormOptions $opts)
Creates the choose namespace selection.
static label( $label, $id, $attribs=[])
Convenience function to build an HTML form label.
makeLegend()
Return the legend displayed within the fieldset.
validateOptions(FormOptions $opts)
Validate a FormOptions object generated by getDefaultOptions() with values already populated.
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add text
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
__construct( $name='Recentchanges', $restriction='')
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
Special page which uses a ChangesList to show query results.
outputChangesList( $rows, $opts)
Build and output the actual changes list.
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
static inputLabelSep( $label, $name, $id, $size=false, $value=false, $attribs=[])
Same as Xml::inputLabel() but return input and label in an array.
registerFilters()
Register all filters and their groups (including those from hooks), plus handle conflicts and default...
Allows to change the fields on the form that will be generated $name
getCustomFilters()
Get all custom filters.
getLanguage()
Shortcut to get user's language.
isIncludable()
Whether it's allowed to transclude the special page via {{Special:Foo/params}}.
getName()
Get the name of this Special Page.
static openElement( $element, $attribs=null)
This opens an XML element.
$filterGroups
Filter groups, and their contained filters This is an associative array (with group name as key) of C...
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
outputNoResults()
Add the "no results" message to the output.
static fieldset( $legend=false, $content=false, $attribs=[])
Shortcut for creating fieldsets.
wfAppendQuery( $url, $query)
Append a query string to an existing URL, which may or may not already have query string parameters a...
addModules()
Add page-specific modules.
null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify $query
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
getConfig()
Shortcut to get main config object.
namespace and then decline to actually register it file or subcat img or subcat $title
addFeedLinks( $params)
Adds RSS/atom links.
wfScript( $script='index')
Get the path to a specified script file, respecting file extensions; this is a wrapper around $wgScri...
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
if(is_array( $mode)) switch( $mode) $input
transformFilterDefinition(array $filterDefinition)
Transforms filter definition to prepare it for constructor.See overrides of this method as well....
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing & $attribs
getStructuredFilterJsData()
Gets structured filter information needed by JS.
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your you must register them with $special registerFilterGroup removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content as context as context the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core if desired whether it is OK to use $contentModel on $title Handler functions that modify $ok should generally return false to prevent further hooks from further modifying $ok inclusive $limit
getFeedQuery()
Get URL query parameters for action=feedrecentchanges API feed of current recent changes view.
getFilterGroups()
Gets the currently registered filters groups.
getUser()
Shortcut to get the User executing this instance.
static makeTitle( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
when a variable name is used in a it is silently declared as a new masking the global
wfTimestampNow()
Convenience function; returns MediaWiki timestamp for the present time.
seed( $articleIds, $categories, $mode='AND')
Initializes the instance.
execute( $subpage)
Main execution point.
getDB()
Return a IDatabase object for reading.
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
getContext()
Gets the context this SpecialPage is executed in.
static newFromContext(IContextSource $context, array $groups=[])
Fetch an appropriate changes list class for the specified context Some users might want to use an enh...
static hidden( $name, $value, array $attribs=[])
Convenience function to produce an input element with type=hidden.
buildQuery(&$tables, &$fields, &$conds, &$query_options, &$join_conds, FormOptions $opts)
Sets appropriate tables, fields, conditions, etc.depending on which filters the user requested....
msg()
Wrapper around wfMessage that sets the current context.
runMainQueryHook(&$tables, &$fields, &$conds, &$query_options, &$join_conds, $opts)
static namespaceSelector(array $params=[], array $selectAttribs=[])
Build a drop-down box for selecting a namespace.
getDefaultOptions()
Get a FormOptions object containing the default options.
The "CategoryFinder" class takes a list of articles, creates an internal representation of all their ...
getFilterGroup( $groupName)
Gets a specified ChangesListFilterGroup by name.
getRequest()
Get the WebRequest being used for this instance.
A special page that lists last changes made to the wiki.
categoryFilterForm(FormOptions $opts)
Create an input to filter changes by categories.
optionsPanel( $defaults, $nondefaults, $numRows)
Creates the options panel.
areFiltersInConflict()
Check if filters are in conflict and guaranteed to return no results.
setTopText(FormOptions $opts)
Send the text to be displayed above the options.
doHeader( $opts, $numRows)
Set the text to be displayed above the changes.
static selectFields()
Return the list of recentchanges fields that should be selected to create a new recentchanges object.
static closeElement( $element)
Shortcut to close an XML element.
getExtraOptions( $opts)
Get options to be displayed in a form.
outputFeedLinks()
Output feed links.
presenting them properly to the user as errors is done by the caller return true use this to change the list i e etc $rev
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
static rawElement( $element, $attribs=[], $contents='')
Returns an HTML element in a string.
usually copyright or history_copyright This message must be in HTML not wikitext & $link
static element( $element, $attribs=[], $contents='')
Identical to rawElement(), but HTML-escapes $contents (like Xml::element()).
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency MediaWikiServices
static run( $event, array $args=[], $deprecatedVersion=null)
Call hook functions defined in Hooks::register and $wgHooks.
setBottomText(FormOptions $opts)
Send the text to be displayed after the options.
getOptions()
Get the current FormOptions for this request.
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your you must register them with $special registerFilterGroup removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content as context as context $options
including( $x=null)
Whether the special page is being evaluated via transclusion.
checkLastModified()
Get last modified date, for client caching Don't use this if we are using the patrol feature,...
makeOptionsLink( $title, $override, $options, $active=false)
Makes change an option link which carries all the other options.
the array() calling protocol came about after MediaWiki 1.4rc1.
static submitButton( $value, $attribs=[])
Convenience function to build an HTML submit button When $wgUseMediaWikiUIEverywhere is true it will ...
static checkLabel( $label, $name, $id, $checked=false, $attribs=[])
Convenience function to build an HTML checkbox with a label.
Represents a page (or page fragment) title within MediaWiki.
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as and the content language as $wgContLang
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output $out