41 public function __construct( $name =
'Recentchanges', $restriction =
'' ) {
42 parent::__construct(
$name, $restriction );
44 $this->watchlistFilterGroupDefinition = [
45 'name' =>
'watchlist',
46 'title' =>
'rcfilters-filtergroup-watchlist',
47 'class' => ChangesListStringOptionsFilterGroup::class,
49 'isFullCoverage' =>
true,
53 'label' =>
'rcfilters-filter-watchlist-watched-label',
54 'description' =>
'rcfilters-filter-watchlist-watched-description',
55 'cssClassSuffix' =>
'watched',
56 'isRowApplicableCallable' =>
function ( $ctx, $rc ) {
57 return $rc->getAttribute(
'wl_user' );
61 'name' =>
'watchednew',
62 'label' =>
'rcfilters-filter-watchlist-watchednew-label',
63 'description' =>
'rcfilters-filter-watchlist-watchednew-description',
64 'cssClassSuffix' =>
'watchednew',
65 'isRowApplicableCallable' =>
function ( $ctx, $rc ) {
66 return $rc->getAttribute(
'wl_user' ) &&
67 $rc->getAttribute(
'rc_timestamp' ) &&
68 $rc->getAttribute(
'wl_notificationtimestamp' ) &&
69 $rc->getAttribute(
'rc_timestamp' ) >= $rc->getAttribute(
'wl_notificationtimestamp' );
73 'name' =>
'notwatched',
74 'label' =>
'rcfilters-filter-watchlist-notwatched-label',
75 'description' =>
'rcfilters-filter-watchlist-notwatched-description',
76 'cssClassSuffix' =>
'notwatched',
77 'isRowApplicableCallable' =>
function ( $ctx, $rc ) {
78 return $rc->getAttribute(
'wl_user' ) ===
null;
83 'queryCallable' =>
function ( $specialPageClassName,
$context,
$dbr,
84 &
$tables, &$fields, &$conds, &$query_options, &$join_conds, $selectedValues ) {
85 sort( $selectedValues );
86 $notwatchedCond =
'wl_user IS NULL';
87 $watchedCond =
'wl_user IS NOT NULL';
88 $newCond =
'rc_timestamp >= wl_notificationtimestamp';
90 if ( $selectedValues === [
'notwatched' ] ) {
91 $conds[] = $notwatchedCond;
95 if ( $selectedValues === [
'watched' ] ) {
96 $conds[] = $watchedCond;
100 if ( $selectedValues === [
'watchednew' ] ) {
101 $conds[] =
$dbr->makeList( [
108 if ( $selectedValues === [
'notwatched',
'watched' ] ) {
113 if ( $selectedValues === [
'notwatched',
'watchednew' ] ) {
114 $conds[] =
$dbr->makeList( [
124 if ( $selectedValues === [
'watched',
'watchednew' ] ) {
125 $conds[] = $watchedCond;
129 if ( $selectedValues === [
'notwatched',
'watched',
'watchednew' ] ) {
144 $feedFormat = $this->
getRequest()->getVal(
'feed' );
145 if ( !$this->
including() && $feedFormat ) {
147 $query[
'feedformat'] = $feedFormat ===
'atom' ?
'atom' :
'rss';
155 $out->setCdnMaxage( 10 );
158 if ( $lastmod ===
false ) {
163 '//meta.wikimedia.org/wiki/Special:MyLanguage/Help:Recent_changes',
166 parent::execute( $subpage );
173 if ( isset( $filterDefinition[
'showHideSuffix'] ) ) {
174 $filterDefinition[
'showHide'] =
'rc' . $filterDefinition[
'showHideSuffix'];
177 return $filterDefinition;
184 parent::registerFilters();
188 $this->
getUser()->isLoggedIn() &&
189 $this->
getUser()->isAllowed(
'viewmywatchlist' )
193 $watchlistGroup->getFilter(
'watched' )->setAsSupersetOf(
194 $watchlistGroup->getFilter(
'watchednew' )
201 $hideMinor = $significance->getFilter(
'hideminor' );
202 $hideMinor->setDefault(
$user->getBoolOption(
'hideminor' ) );
205 $hideBots = $automated->getFilter(
'hidebots' );
206 $hideBots->setDefault(
true );
209 if ( $reviewStatus !==
null ) {
211 if (
$user->getBoolOption(
'hidepatrolled' ) ) {
212 $reviewStatus->setDefault(
'unpatrolled' );
213 $legacyReviewStatus = $this->
getFilterGroup(
'legacyReviewStatus' );
214 $legacyHidePatrolled = $legacyReviewStatus->getFilter(
'hidepatrolled' );
215 $legacyHidePatrolled->setDefault(
true );
220 $hideCategorization = $changeType->getFilter(
'hidecategorization' );
221 if ( $hideCategorization !==
null ) {
223 $hideCategorization->setDefault(
$user->getBoolOption(
'hidecategorization' ) );
233 if ( $this->customFilters ===
null ) {
234 $this->customFilters = parent::getCustomFilters();
235 Hooks::run(
'SpecialRecentChangesFilters', [ $this, &$this->customFilters ],
'1.23' );
248 parent::parseParameters( $par, $opts );
250 $bits = preg_split(
'/\s*,\s*/', trim( $par ) );
251 foreach ( $bits
as $bit ) {
252 if ( is_numeric( $bit ) ) {
253 $opts[
'limit'] = $bit;
257 if ( preg_match(
'/^limit=(\d+)$/', $bit, $m ) ) {
258 $opts[
'limit'] = $m[1];
260 if ( preg_match(
'/^days=(\d+(?:\.\d+)?)$/', $bit, $m ) ) {
261 $opts[
'days'] = $m[1];
263 if ( preg_match(
'/^namespace=(.*)$/', $bit, $m ) ) {
264 $opts[
'namespace'] = $m[1];
266 if ( preg_match(
'/^tagfilter=(.*)$/', $bit, $m ) ) {
267 $opts[
'tagfilter'] = $m[1];
281 $rcQuery = RecentChange::getQueryInfo();
283 $fields = array_merge( $rcQuery[
'fields'], $fields );
284 $join_conds = array_merge( $join_conds, $rcQuery[
'joins'] );
287 if (
$user->isLoggedIn() &&
$user->isAllowed(
'viewmywatchlist' ) ) {
289 $fields[] =
'wl_user';
290 $fields[] =
'wl_notificationtimestamp';
291 $join_conds[
'watchlist'] = [
'LEFT JOIN', [
292 'wl_user' =>
$user->getId(),
294 'wl_namespace=rc_namespace'
300 $fields[] =
'page_latest';
301 $join_conds[
'page'] = [
'LEFT JOIN',
'rc_cur_id=page_id' ];
303 $tagFilter = $opts[
'tagfilter'] ? explode(
'|', $opts[
'tagfilter'] ) : [];
324 'ORDER BY' =>
'rc_timestamp DESC',
325 'LIMIT' => $opts[
'limit']
327 if ( in_array(
'DISTINCT', $query_options ) ) {
333 $orderByAndLimit[
'ORDER BY'] =
'rc_timestamp DESC, rc_id DESC';
334 $orderByAndLimit[
'GROUP BY'] =
'rc_timestamp, rc_id';
340 $query_options = array_merge( $orderByAndLimit, $query_options );
346 $conds + [
'rc_new' => [ 0, 1 ] ],
356 &$query_options, &$join_conds, $opts
358 return parent::runMainQueryHook(
$tables, $fields, $conds, $query_options, $join_conds, $opts )
360 'SpecialRecentChangesQuery',
361 [ &$conds, &
$tables, &$join_conds, $opts, &$query_options, &$fields ],
384 $query[
'action'] =
'feedrecentchanges';
385 $feedLimit = $this->
getConfig()->get(
'FeedLimit' );
386 if ( $query[
'limit'] > $feedLimit ) {
387 $query[
'limit'] = $feedLimit;
400 $limit = $opts[
'limit'];
402 $showWatcherCount = $this->
getConfig()->get(
'RCShowWatchingUsers' )
403 && $this->
getUser()->getOption(
'shownumberswatching' );
408 $list->initChangesListRows(
$rows );
410 $userShowHiddenCats = $this->
getUser()->getBoolOption(
'showhiddencats' );
411 $rclistOutput = $list->beginRecentChangesList();
420 $rc = RecentChange::newFromRow( $obj );
422 # Skip CatWatch entries for hidden cats based on user preference
425 !$userShowHiddenCats &&
426 $rc->getParam(
'hidden-cat' )
431 $rc->counter = $counter++;
432 # Check if the page has been updated since the last visit
433 if ( $this->
getConfig()->
get(
'ShowUpdatedMarker' )
434 && !empty( $obj->wl_notificationtimestamp )
436 $rc->notificationtimestamp = ( $obj->rc_timestamp >= $obj->wl_notificationtimestamp );
438 $rc->notificationtimestamp =
false;
440 # Check the number of users watching the page
441 $rc->numberofWatchingusers = 0;
442 if ( $showWatcherCount && $obj->rc_namespace >= 0 ) {
443 if ( !isset( $watcherCache[$obj->rc_namespace][$obj->rc_title] ) ) {
444 $watcherCache[$obj->rc_namespace][$obj->rc_title] =
445 MediaWikiServices::getInstance()->getWatchedItemStore()->countWatchers(
446 new TitleValue( (
int)$obj->rc_namespace, $obj->rc_title )
449 $rc->numberofWatchingusers = $watcherCache[$obj->rc_namespace][$obj->rc_title];
452 $changeLine = $list->recentChangesLine( $rc, !empty( $obj->wl_user ), $counter );
453 if ( $changeLine !==
false ) {
454 $rclistOutput .= $changeLine;
458 $rclistOutput .= $list->endRecentChangesList();
460 if (
$rows->numRows() === 0 ) {
463 $this->
getOutput()->setStatusCode( 404 );
466 $this->
getOutput()->addHTML( $rclistOutput );
479 $defaults = $opts->getAllValues();
480 $nondefaults = $opts->getChangedValues();
486 $panel[] = $this->
optionsPanel( $defaults, $nondefaults, $numRows );
490 $extraOptsCount = count( $extraOpts );
492 $submit =
' ' . Xml::submitButton( $this->
msg(
'recentchanges-submit' )->
text() );
494 $out = Xml::openElement(
'table', [
'class' =>
'mw-recentchanges-table' ] );
495 foreach ( $extraOpts
as $name => $optionRow ) {
496 # Add submit button to the last row only
498 $addSubmit = ( $count === $extraOptsCount ) ? $submit :
'';
500 $out .= Xml::openElement(
'tr', [
'class' =>
$name .
'Form' ] );
501 if ( is_array( $optionRow ) ) {
504 [
'class' =>
'mw-label mw-' .
$name .
'-label' ],
509 [
'class' =>
'mw-input' ],
510 $optionRow[1] . $addSubmit
515 [
'class' =>
'mw-input',
'colspan' => 2 ],
516 $optionRow . $addSubmit
519 $out .= Xml::closeElement(
'tr' );
521 $out .= Xml::closeElement(
'table' );
523 $unconsumed = $opts->getUnconsumedValues();
524 foreach ( $unconsumed
as $key =>
$value ) {
529 $out .= Html::hidden(
'title',
$t->getPrefixedText() );
530 $form = Xml::tags(
'form', [
'action' =>
wfScript() ],
$out );
532 $panelString = implode(
"\n", $panel );
534 $rcoptions = Xml::fieldset(
535 $this->
msg(
'recentchanges-legend' )->
text(),
537 [
'class' =>
'rcoptions cloptions' ]
542 $rcfilterContainer = Html::element(
544 [
'class' =>
'rcfilters-container' ]
547 $loadingContainer = Html::rawElement(
549 [
'class' =>
'rcfilters-spinner' ],
552 [
'class' =>
'rcfilters-spinner-bounce' ]
560 [
'class' =>
'rcfilters-head' ],
561 $rcfilterContainer . $rcoptions
566 $this->
getOutput()->addHTML( $loadingContainer );
568 $this->
getOutput()->addHTML( $rcoptions );
582 $message = $this->
msg(
'recentchangestext' )->inContentLanguage();
583 if ( !$message->isDisabled() ) {
589 $this->getPageTitle(),
596 $content = $parserOutput->getText( [
597 'enableSectionEditLinks' =>
false,
600 $this->
getOutput()->addParserOutputMetadata( $parserOutput );
607 $topLinksAttributes = [
'class' =>
'mw-recentchanges-toplinks' ];
611 $collapsedState = $this->
getRequest()->getCookie(
'rcfilters-toplinks-collapsed-state' );
613 $topLinksAttributes[
'class' ] .= $collapsedState !==
'expanded' ?
614 ' mw-recentchanges-toplinks-collapsed' :
'';
617 $contentTitle =
new OOUI\ButtonWidget( [
618 'classes' => [
'mw-recentchanges-toplinks-title' ],
619 'label' =>
new OOUI\HtmlSnippet( $this->
msg(
'rcfilters-other-review-tools' )->parse() ),
621 'indicator' => $collapsedState !==
'expanded' ?
'down' :
'up',
622 'flags' => [
'progressive' ],
625 $contentWrapper = Html::rawElement(
'div',
627 [
'class' =>
'mw-recentchanges-toplinks-content mw-collapsible-content' ],
632 $content = $contentTitle . $contentWrapper;
638 $topLinksAttributes = array_merge( $topLinksAttributes, $langAttributes );
642 Html::rawElement(
'div', $topLinksAttributes, $content )
654 $opts->consumeValues( [
655 'namespace',
'invert',
'associated',
'tagfilter'
662 $opts[
'tagfilter'],
false, $this->
getContext() );
663 if ( count( $tagFilter ) ) {
664 $extraOpts[
'tagfilter'] = $tagFilter;
668 if ( $this->
getName() ===
'Recentchanges' ) {
669 Hooks::run(
'SpecialRecentChangesPanel', [ &$extraOpts, $opts ] );
679 parent::addModules();
681 $out->addModules(
'mediawiki.special.recentchanges' );
693 $lastmod =
$dbr->selectField(
'recentchanges',
'MAX(rc_timestamp)',
'', __METHOD__ );
705 $nsSelect = Html::namespaceSelector(
706 [
'selected' => $opts[
'namespace'],
'all' =>
'' ],
707 [
'name' =>
'namespace',
'id' =>
'namespace' ]
709 $nsLabel = Xml::label( $this->
msg(
'namespace' )->
text(),
'namespace' );
710 $invert = Xml::checkLabel(
711 $this->
msg(
'invert' )->
text(),
'invert',
'nsinvert',
713 [
'title' => $this->
msg(
'tooltip-invert' )->
text() ]
715 $associated = Xml::checkLabel(
716 $this->
msg(
'namespace_association' )->
text(),
'associated',
'nsassociated',
718 [
'title' => $this->
msg(
'tooltip-namespace_association' )->
text() ]
721 return [ $nsLabel,
"$nsSelect $invert $associated" ];
735 $categories = array_map(
'trim', explode(
'|', $opts[
'categories'] ) );
737 if ( !count( $categories ) ) {
743 foreach ( $categories
as $cat ) {
755 foreach (
$rows as $k => $r ) {
756 $nt = Title::makeTitle( $r->rc_namespace, $r->rc_title );
757 $id = $nt->getArticleID();
759 continue; #
Page might have been deleted...
761 if ( !in_array( $id, $articles ) ) {
764 if ( !isset( $a2r[$id] ) ) {
772 if ( !count( $articles ) || !count( $cats ) ) {
778 $catFind->
seed( $articles, $cats, $opts[
'categories_any'] ?
'OR' :
'AND' );
779 $match = $catFind->run();
783 foreach ( $match
as $id ) {
784 foreach ( $a2r[$id]
as $rev ) {
786 $newrows[$k] = $rowsarr[$k];
809 'data-params' => json_encode( $override ),
810 'data-keys' => implode(
',', array_keys( $override ) ),
823 $options = $nondefaults + $defaults;
826 $msg = $this->
msg(
'rclegend' );
827 if ( !$msg->isDisabled() ) {
828 $note .=
'<div class="mw-rclegend">' . $msg->parse() .
"</div>\n";
836 [
'from' =>
'' ], $nondefaults );
838 $noteFromMsg = $this->
msg(
'rcnotefrom' )
845 ->numParams( $numRows );
846 $note .= Html::rawElement(
848 [
'class' =>
'rcnotefrom' ],
849 $noteFromMsg->parse()
854 [
'class' =>
'rcoptions-listfromreset' ],
855 $this->
msg(
'parentheses' )->rawParams( $resetLink )->parse()
860 # Sort data for display and make sure it's unique after we've added user data.
861 $linkLimits = $config->get(
'RCLinkLimits' );
864 $linkLimits = array_unique( $linkLimits );
866 $linkDays = $config->get(
'RCLinkDays' );
869 $linkDays = array_unique( $linkDays );
877 $cl =
$lang->pipeList( $cl );
885 $dl =
$lang->pipeList( $dl );
887 $showhide = [
'show',
'hide' ];
892 $msg = $filter->getShowHide();
893 $linkMessage = $this->
msg( $msg .
'-' . $showhide[1 -
$options[$key]] );
896 if ( !$linkMessage->exists() ) {
897 $linkMessage = $this->
msg( $showhide[1 -
$options[$key]] );
901 [ $key => 1 -
$options[$key] ], $nondefaults );
904 'class' =>
"$msg rcshowhideoption clshowhideoption",
905 'data-filter-name' => $filter->getName(),
908 if ( $filter->isFeatureAvailableOnStructuredUi( $this ) ) {
909 $attribs[
'data-feature-in-structured-ui'] =
true;
912 $links[] = Html::rawElement(
915 $this->
msg( $msg )->rawParams(
$link )->parse()
921 $now =
$lang->userTimeAndDate( $timestamp,
$user );
922 $timenow =
$lang->userTime( $timestamp,
$user );
923 $datenow =
$lang->userDate( $timestamp,
$user );
924 $pipedLinks =
'<span class="rcshowhide">' .
$lang->pipeList( $links ) .
'</span>';
926 $rclinks =
'<span class="rclinks">' . $this->
msg(
'rclinks' )->rawParams( $cl, $dl,
'' )
927 ->parse() .
'</span>';
930 $this->
msg(
'rclistfrom' )->rawParams( $now, $timenow, $datenow )->parse(),
931 [
'from' => $timestamp ],
935 return "{$note}$rclinks<br />$pipedLinks<br />$rclistfrom";
947 $systemPrefValue = $this->
getUser()->getIntOption(
'rclimit' );
950 return $this->
getUser()->getIntOption( static::$limitPreferenceName, $systemPrefValue );
954 return $systemPrefValue;
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for use
wfTimestampNow()
Convenience function; returns MediaWiki timestamp for the present time.
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
wfAppendQuery( $url, $query)
Append a query string to an existing URL, which may or may not already have query string parameters a...
wfScript( $script='index')
Get the path to a specified script file, respecting file extensions; this is a wrapper around $wgScri...
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
The "CategoryFinder" class takes a list of articles, creates an internal representation of all their ...
seed( $articleIds, $categories, $mode='AND', $maxdepth=-1)
Initializes the instance.
Special page which uses a ChangesList to show query results.
registerFiltersFromDefinitions(array $definition)
Register filters from a definition object.
convertParamsForLink( $params)
Convert parameters values from true/false to 1/0 so they are not omitted by wfArrayToCgi() Bug 36524.
getFilterGroup( $groupName)
Gets a specified ChangesListFilterGroup by name.
isStructuredFilterUiEnabled()
Check whether the structured filter UI is enabled.
areFiltersInConflict()
Check if filters are in conflict and guaranteed to return no results.
outputNoResults()
Add the "no results" message to the output.
getLegacyShowHideFilters()
getOptions()
Get the current FormOptions for this request.
setBottomText(FormOptions $opts)
Send the text to be displayed after the options.
makeLegend()
Return the legend displayed within the fieldset.
const NONE
Signifies that no options in the group are selected, meaning the group has no effect.
static newFromContext(IContextSource $context, array $groups=[])
Fetch an appropriate changes list class for the specified context Some users might want to use an enh...
Marks HTML that shouldn't be escaped.
static singleton()
Get the signleton instance of this class.
getName()
Get the name of this Special Page.
getOutput()
Get the OutputPage being used for this instance.
getUser()
Shortcut to get the User executing this instance.
addFeedLinks( $params)
Adds RSS/atom links.
getContext()
Gets the context this SpecialPage is executed in.
msg( $key)
Wrapper around wfMessage that sets the current context.
getConfig()
Shortcut to get main config object.
getRequest()
Get the WebRequest being used for this instance.
getPageTitle( $subpage=false)
Get a self-referential title object.
getLanguage()
Shortcut to get user's language.
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
including( $x=null)
Whether the special page is being evaluated via transclusion.
A special page that lists last changes made to the wiki.
filterByCategories(&$rows, FormOptions $opts)
Filter $rows by categories set in $opts.
optionsPanel( $defaults, $nondefaults, $numRows)
Creates the options panel.
isIncludable()
Whether it's allowed to transclude the special page via {{Special:Foo/params}}.
setTopText(FormOptions $opts)
Send the text to be displayed above the options.
getExtraOptions( $opts)
Get options to be displayed in a form.
makeOptionsLink( $title, $override, $options, $active=false)
Makes change an option link which carries all the other options.
getDB()
Return a IDatabase object for reading.
execute( $subpage)
Main execution point.
static $savedQueriesPreferenceName
addModules()
Add page-specific modules.
getFeedQuery()
Get URL query parameters for action=feedrecentchanges API feed of current recent changes view.
static $daysPreferenceName
checkLastModified()
Get last modified date, for client caching Don't use this if we are using the patrol feature,...
doHeader( $opts, $numRows)
Set the text to be displayed above the changes.
static $limitPreferenceName
transformFilterDefinition(array $filterDefinition)
@inheritDoc
parseParameters( $par, FormOptions $opts)
Process $par and put options found in $opts.
getDefaultLimit()
Get the default value of the number of changes to display when loading the result set.
__construct( $name='Recentchanges', $restriction='')
namespaceFilterForm(FormOptions $opts)
Creates the choose namespace selection.
runMainQueryHook(&$tables, &$fields, &$conds, &$query_options, &$join_conds, $opts)
outputChangesList( $rows, $opts)
Build and output the actual changes list.
outputFeedLinks()
Output feed links.
registerFilters()
@inheritDoc
getCustomFilters()
Get all custom filters.
$watchlistFilterGroupDefinition
doMainQuery( $tables, $fields, $conds, $query_options, $join_conds, FormOptions $opts)
@inheritDoc
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 local content language as $wgContLang
when a variable name is used in a it is silently declared as a new local masking the global
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
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
the array() calling protocol came about after MediaWiki 1.4rc1.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction $rows
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
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 & $options
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext $context
namespace and then decline to actually register it file or subcat img or subcat $title
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
usually copyright or history_copyright This message must be in HTML not wikitext & $link
Allows to change the fields on the form that will be generated $name
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
null for the local 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
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
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 local account $user
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
Interface for type hinting (accepts WikiPage, Article, ImagePage, CategoryPage)
if(!isset( $args[0])) $lang