Go to the documentation of this file.
36 parent::__construct(
'Contributions' );
44 $out->addModuleStyles( [
46 'mediawiki.special.changeslist',
53 if ( $par !==
null ) {
56 $target =
$request->getVal(
'target' );
59 if (
$request->getVal(
'contribs' ) ==
'newbie' || $par ===
'newbies' ) {
61 $this->opts[
'contribs'] =
'newbie';
63 $this->opts[
'contribs'] =
'user';
66 $this->opts[
'deletedOnly'] =
$request->getBool(
'deletedOnly' );
68 if ( !strlen( $target ) ) {
78 $this->opts[
'limit'] =
$request->getInt(
'limit',
$user->getOption(
'rclimit' ) );
79 $this->opts[
'target'] = $target;
80 $this->opts[
'topOnly'] =
$request->getBool(
'topOnly' );
81 $this->opts[
'newOnly'] =
$request->getBool(
'newOnly' );
82 $this->opts[
'hideMinor'] =
$request->getBool(
'hideMinor' );
85 if ( $this->opts[
'contribs'] ===
'newbie' ) {
87 $out->addSubtitle( $this->
msg(
'sp-contributions-newbies-sub' ) );
90 $this->
msg(
'sp-contributions-newbies-title' )->
plain()
91 )->inContentLanguage() );
100 $out->setHTMLTitle( $this->
msg(
102 $this->
msg(
'contributions-title', $target )->
plain()
103 )->inContentLanguage() );
115 $id = $userObj->getId();
117 $target = $nt->getText();
119 $out->setHTMLTitle( $this->
msg(
121 $this->
msg(
'contributions-title', $target )->
plain()
122 )->inContentLanguage() );
124 # For IP ranges, we want the contributionsSub, but not the skin-dependent
125 # links under 'Tools', which may include irrelevant links like 'Logs'.
127 (
User::isIP( $target ) || $userObj->isLoggedIn() )
135 $this->
getSkin()->setRelevantUser( $userObj );
139 $ns =
$request->getVal(
'namespace',
null );
140 if ( $ns !==
null && $ns !==
'' ) {
141 $this->opts[
'namespace'] = intval( $ns );
143 $this->opts[
'namespace'] =
'';
146 $this->opts[
'associated'] =
$request->getBool(
'associated' );
147 $this->opts[
'nsInvert'] = (bool)
$request->getVal(
'nsInvert' );
148 $this->opts[
'tagfilter'] = (
string)
$request->getVal(
'tagfilter' );
152 if (
$user->isAllowed(
'markbotedits' ) &&
$request->getBool(
'bot' ) ) {
153 $this->opts[
'bot'] =
'1';
156 $skip =
$request->getText(
'offset' ) ||
$request->getText(
'dir' ) ==
'prev';
157 # Offset overrides year/month selection
159 $this->opts[
'year'] =
$request->getVal(
'year' );
160 $this->opts[
'month'] =
$request->getVal(
'month' );
162 $this->opts[
'start'] =
$request->getVal(
'start' );
163 $this->opts[
'end'] =
$request->getVal(
'end' );
167 $feedType =
$request->getVal(
'feed' );
170 'action' =>
'feedcontributions',
173 if ( $this->opts[
'topOnly'] ) {
174 $feedParams[
'toponly'] =
true;
176 if ( $this->opts[
'newOnly'] ) {
177 $feedParams[
'newonly'] =
true;
179 if ( $this->opts[
'hideMinor'] ) {
180 $feedParams[
'hideminor'] =
true;
182 if ( $this->opts[
'deletedOnly'] ) {
183 $feedParams[
'deletedonly'] =
true;
185 if ( $this->opts[
'tagfilter'] !==
'' ) {
186 $feedParams[
'tagfilter'] = $this->opts[
'tagfilter'];
188 if ( $this->opts[
'namespace'] !==
'' ) {
189 $feedParams[
'namespace'] = $this->opts[
'namespace'];
193 if ( $feedType && $this->opts[
'year'] !==
null ) {
194 $feedParams[
'year'] = $this->opts[
'year'];
196 if ( $feedType && $this->opts[
'month'] !==
null ) {
197 $feedParams[
'month'] = $this->opts[
'month'];
203 $feedParams[
'feedformat'] = $feedType;
206 $out->redirect( $url,
'301' );
214 if (
Hooks::run(
'SpecialContributionsBeforeMainOutput', [ $id, $userObj, $this ] ) ) {
220 'contribs' => $this->opts[
'contribs'],
221 'namespace' => $this->opts[
'namespace'],
222 'tagfilter' => $this->opts[
'tagfilter'],
223 'start' => $this->opts[
'start'],
224 'end' => $this->opts[
'end'],
225 'deletedOnly' => $this->opts[
'deletedOnly'],
226 'topOnly' => $this->opts[
'topOnly'],
227 'newOnly' => $this->opts[
'newOnly'],
228 'hideMinor' => $this->opts[
'hideMinor'],
229 'nsInvert' => $this->opts[
'nsInvert'],
230 'associated' => $this->opts[
'associated'],
233 if (
IP::isValidRange( $target ) && !$pager->isQueryableRange( $target ) ) {
235 $limits = $this->
getConfig()->get(
'RangeContributionsCIDRLimit' );
236 $limit = $limits[
IP::isIPv4( $target ) ?
'IPv4' :
'IPv6' ];
237 $out->addWikiMsg(
'sp-contributions-outofrange', $limit );
238 } elseif ( !$pager->getNumRows() ) {
239 $out->addWikiMsg(
'nocontribs', $target );
244 if ( $this->
getUser()->isAnon() ) {
245 $poolKey .=
'a:' . $this->
getUser()->getName();
247 $poolKey .=
'u:' . $this->
getUser()->getId();
250 'doWork' =>
function ()
use ( $pager,
$out ) {
251 # Show a message about replica DB lag, if applicable
252 $lb = MediaWikiServices::getInstance()->getDBLoadBalancer();
253 $lag = $lb->safeGetLag( $pager->getDatabase() );
255 $out->showLagWarning( $lag );
260 $output =
'<p>' . $pager->getNavigationBar() .
'</p>' .
262 '<p>' . $pager->getNavigationBar() .
'</p>';
266 'error' =>
function ()
use (
$out ) {
267 $msg = $this->
getUser()->isAnon()
268 ?
'sp-contributions-concurrency-ip'
269 :
'sp-contributions-concurrency-user';
270 $out->wrapWikiMsg(
"<div class='errorbox'>\n$1\n</div>", $msg );
276 $out->preventClickjacking( $pager->getPreventClickjacking() );
278 # Show the appropriate "footer" message - WHOIS tools, etc.
279 if ( $this->opts[
'contribs'] ==
'newbie' ) {
280 $message =
'sp-contributions-footer-newbies';
282 $message =
'sp-contributions-footer-anon-range';
284 $message =
'sp-contributions-footer-anon';
285 } elseif ( $userObj->isAnon() ) {
288 } elseif ( $userObj->isHidden() && !$this->getUser()->isAllowed(
'hideuser' ) ) {
292 $message =
'sp-contributions-footer';
297 if ( !$this->
msg( $message, $target )->isDisabled() ) {
299 "<div class='mw-contributions-footer'>\n$1\n</div>",
300 [ $message, $target ] );
315 $isAnon = $userObj->isAnon();
316 if ( !$isAnon && $userObj->isHidden() && !$this->getUser->isAllowed(
'hideuser' ) ) {
327 if ( !
User::isIP( $userObj->getName() ) && !$userObj->isIPRange() ) {
329 "<div class=\"mw-userpage-userdoesnotexist error\">\n\$1\n</div>",
331 'contributions-userdoesnotexist',
336 $this->
getOutput()->setStatusCode( 404 );
339 $user = htmlspecialchars( $userObj->getName() );
343 $nt = $userObj->getUserPage();
344 $talk = $userObj->getTalkPage();
355 if ( $userObj->isIPRange() ) {
374 'showIfEmpty' =>
false,
377 'sp-contributions-blocked-notice-anon' :
378 'sp-contributions-blocked-notice',
379 $userObj->getName() # Support GENDER
in 'sp-contributions-blocked-notice'
381 'offset' =>
'' # don
't use WebRequest parameter offset
388 return $this->msg( 'contribsub2
' )->rawParams( $user, $links )->params( $userObj->getName() );
399 public static function getUserLinks( SpecialPage $sp, User $target ) {
400 $id = $target->getId();
401 $username = $target->getName();
402 $userpage = $target->getUserPage();
403 $talkpage = $target->getTalkPage();
405 $linkRenderer = $sp->getLinkRenderer();
407 # No talk pages for IP ranges.
408 if ( !IP::isValidRange( $username ) ) {
409 $tools['user-talk
'] = $linkRenderer->makeLink(
411 $sp->msg( 'sp-contributions-talk
' )->text()
415 if ( ( $id !== null ) || ( $id === null && IP::isIPAddress( $username ) ) ) {
416 if ( $sp->getUser()->isAllowed( 'block' ) ) { # Block / Change block / Unblock links
417 if ( $target->isBlocked() && $target->getBlock()->getType() != Block::TYPE_AUTO ) {
418 $tools['block'] = $linkRenderer->makeKnownLink( # Change block link
419 SpecialPage::getTitleFor( 'Block', $username ),
420 $sp->msg( 'change-blocklink
' )->text()
422 $tools['unblock
'] = $linkRenderer->makeKnownLink( # Unblock link
423 SpecialPage::getTitleFor( 'Unblock
', $username ),
424 $sp->msg( 'unblocklink
' )->text()
426 } else { # User is not blocked
427 $tools['block'] = $linkRenderer->makeKnownLink( # Block link
428 SpecialPage::getTitleFor( 'Block', $username ),
429 $sp->msg( 'blocklink
' )->text()
435 $tools['log-
block'] = $linkRenderer->makeKnownLink(
436 SpecialPage::getTitleFor( 'Log
', 'block' ),
437 $sp->msg( 'sp-contributions-blocklog
' )->text(),
439 [ 'page' => $userpage->getPrefixedText() ]
442 # Suppression log link (T61120)
443 if ( $sp->getUser()->isAllowed( 'suppressionlog
' ) ) {
444 $tools['log-suppression
'] = $linkRenderer->makeKnownLink(
445 SpecialPage::getTitleFor( 'Log
', 'suppress
' ),
446 $sp->msg( 'sp-contributions-suppresslog
', $username )->text(),
448 [ 'offender
' => $username ]
458 $sp->msg(
'sp-contributions-uploads' )->text()
464 $sp->msg(
'sp-contributions-logs' )->text()
467 # Add
link to deleted
user contributions
for priviledged users
468 if ( $sp->getUser()->isAllowed(
'deletedhistory' ) ) {
469 $tools[
'deletedcontribs'] = $linkRenderer->makeKnownLink(
470 SpecialPage::getTitleFor(
'DeletedContributions', $username ),
471 $sp->msg(
'sp-contributions-deleted', $username )->text()
476 # Add a link to change user rights for privileged users
478 $userrightsPage->setContext( $sp->getContext() );
479 if ( $userrightsPage->userCanChangeRights( $target ) ) {
482 $sp->msg(
'sp-contributions-userrights',
$username )->text()
486 Hooks::run(
'ContributionsToolLinks', [ $id, $userpage, &$tools, $sp ] );
496 $this->opts[
'title'] = $this->
getPageTitle()->getPrefixedText();
497 if ( !isset( $this->opts[
'target'] ) ) {
498 $this->opts[
'target'] =
'';
500 $this->opts[
'target'] = str_replace(
'_',
' ', $this->opts[
'target'] );
503 if ( !isset( $this->opts[
'namespace'] ) ) {
504 $this->opts[
'namespace'] =
'';
507 if ( !isset( $this->opts[
'nsInvert'] ) ) {
508 $this->opts[
'nsInvert'] =
'';
511 if ( !isset( $this->opts[
'associated'] ) ) {
512 $this->opts[
'associated'] =
false;
515 if ( !isset( $this->opts[
'contribs'] ) ) {
516 $this->opts[
'contribs'] =
'user';
519 if ( !isset( $this->opts[
'start'] ) ) {
520 $this->opts[
'start'] =
'';
523 if ( !isset( $this->opts[
'end'] ) ) {
524 $this->opts[
'end'] =
'';
527 if ( $this->opts[
'contribs'] ==
'newbie' ) {
528 $this->opts[
'target'] =
'';
531 if ( !isset( $this->opts[
'tagfilter'] ) ) {
532 $this->opts[
'tagfilter'] =
'';
535 if ( !isset( $this->opts[
'topOnly'] ) ) {
536 $this->opts[
'topOnly'] =
false;
539 if ( !isset( $this->opts[
'newOnly'] ) ) {
540 $this->opts[
'newOnly'] =
false;
543 if ( !isset( $this->opts[
'hideMinor'] ) ) {
544 $this->opts[
'hideMinor'] =
false;
549 'mediawiki.userSuggest',
550 'mediawiki.special.contributions',
552 $this->
getOutput()->addModuleStyles(
'mediawiki.widgets.DateInputWidget.styles' );
560 'class' =>
'mw-contributions-form'
564 # Add hidden params for tracking except for parameters in $skipParameters
583 if ( in_array(
$name, $skipParameters ) ) {
590 $this->opts[
'tagfilter'],
false, $this->
getContext() );
596 implode(
' ', $tagFilter )
603 $this->
msg(
'sp-contributions-newbies' )->
text(),
607 $this->opts[
'contribs'] ==
'newbie',
608 [
'class' =>
'mw-input' ]
611 $this->
msg(
'sp-contributions-username' )->
text(),
615 $this->opts[
'contribs'] ==
'user',
616 [
'class' =>
'mw-input' ]
620 $this->opts[
'target'],
626 'mw-ui-input-inline',
627 'mw-autocomplete-user',
631 ( $this->opts[
'contribs'] ===
'newbie' || $this->opts[
'target'] )
632 ? [] : [
'autofocus' =>
true ]
639 $labelNewbies .
'<br>' . $labelUsername .
' ' .
$input .
' '
646 $this->
msg(
'namespace' )->
text(),
651 [
'selected' => $this->opts[
'namespace'],
'all' =>
'' ],
653 'name' =>
'namespace',
655 'class' =>
'namespaceselector',
660 [
'class' =>
'mw-input-with-label' ],
662 $this->
msg(
'invert' )->
text(),
665 $this->opts[
'nsInvert'],
667 'title' => $this->
msg(
'tooltip-invert' )->
text(),
668 'class' =>
'mw-input'
674 $this->
msg(
'namespace_association' )->
text(),
677 $this->opts[
'associated'],
679 'title' => $this->
msg(
'tooltip-namespace_association' )->
text(),
680 'class' =>
'mw-input'
688 if ( $this->
getUser()->isAllowed(
'deletedhistory' ) ) {
691 [
'class' =>
'mw-input-with-label' ],
693 $this->
msg(
'history-show-deleted' )->
text(),
695 'mw-show-deleted-only',
696 $this->opts[
'deletedOnly'],
697 [
'class' =>
'mw-input' ]
704 [
'class' =>
'mw-input-with-label' ],
706 $this->
msg(
'sp-contributions-toponly' )->
text(),
709 $this->opts[
'topOnly'],
710 [
'class' =>
'mw-input' ]
715 [
'class' =>
'mw-input-with-label' ],
717 $this->
msg(
'sp-contributions-newonly' )->
text(),
720 $this->opts[
'newOnly'],
721 [
'class' =>
'mw-input' ]
726 [
'class' =>
'mw-input-with-label' ],
728 $this->
msg(
'sp-contributions-hideminor' )->
text(),
730 'mw-hide-minor-edits',
731 $this->opts[
'hideMinor'],
732 [
'class' =>
'mw-input' ]
737 'SpecialContributions::getForm::filters',
744 implode(
'', $filters )
753 'id' =>
'mw-date-start',
755 'value' => $this->opts[
'start'],
756 'longDisplayFormat' =>
true,
761 'id' =>
'mw-date-end',
763 'value' => $this->opts[
'end'],
764 'longDisplayFormat' =>
true,
770 $this->
msg(
'sp-contributions-submit' )->
text(),
771 [
'class' =>
'mw-submit' ], [
'mw-ui-progressive' ]
776 $this->
msg(
'sp-contributions-search' )->
text(),
778 $namespaceSelection .
781 $dateRangeSelection .
783 [
'class' =>
'mw-contributions-table' ]
786 $explain = $this->
msg(
'sp-contributions-explain' );
787 if ( !$explain->isBlank() ) {
788 $form .=
"<p id='mw-sp-contributions-explain'>{$explain->parse()}</p>";
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
prefixSearchSubpages( $search, $limit, $offset)
Return an array of subpages beginning with $search that this special page will accept.
getPageTitle( $subpage=false)
Get a self-referential title object.
msg( $key)
Wrapper around wfMessage that sets the current context.
static getCurrentWikiDbDomain()
static getUserLinks(SpecialPage $sp, User $target)
Links to different places.
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for use
static tags( $element, $attribs=null, $contents)
Same as Xml::element(), but does not escape contents.
getOutput()
Get the OutputPage being used for this instance.
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage() -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "<
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set but before ordinary actions take place $output
getForm()
Generates the namespace selector form with hidden attributes.
static label( $label, $id, $attribs=[])
Convenience function to build an HTML form label.
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 code would result in ircNotify being run twice when an article is and once for brion Hooks can return three possible true was required This is the default since MediaWiki *some string
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 change
static search( $audience, $search, $limit, $offset=0)
Do a prefix search of user names and return a list of matching user names.
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
A collection of public static functions to play with IP address and IP ranges.
static newFromTarget( $specificTarget, $vagueTarget=null, $fromMaster=false)
Given a target and the target's type, get an existing Block object if possible.
static newFromName( $name, $validate='valid')
Static factory method for creation from username.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name If you don't need a full Title object,...
getSkin()
Shortcut to get the skin being used for this instance.
Shortcut to construct an includable special page.
Convenience class for dealing with PoolCounters using callbacks.
getLanguage()
Shortcut to get user's language.
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
static input( $name, $value='', $type='text', array $attribs=[])
Convenience function to produce an "<input>" element.
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...
execute( $par)
Default execute method Checks user permissions.
Special page to allow managing user group membership.
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
static isValidRange( $ipRange)
Validate an IP range (valid address with a valid CIDR prefix).
getConfig()
Shortcut to get main config object.
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 and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same user
Wikitext formatted, in the key only.
addFeedLinks( $params)
Adds RSS/atom links.
if(file_exists("$IP/StartProfiler.php"))
wfScript( $script='index')
Get the path to a specified script file, respecting file extensions; this is a wrapper around $wgScri...
if(is_array( $mode)) switch( $mode) $input
execute( $skipcache=false)
Get the result of the work (whatever it is), or the result of the error() function.
static isIP( $name)
Does the string match an anonymous IP address?
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
getUser()
Shortcut to get the User executing this instance.
static showLogExtract(&$out, $types=[], $page='', $user='', $param=[])
Show log extract.
getContext()
Gets the context this SpecialPage is executed in.
This document describes the XML format used to represent information about external sites known to a MediaWiki installation This information about external sites is used to allow inter wiki links
in the order they appear.
static hidden( $name, $value, array $attribs=[])
Convenience function to produce an input element with type=hidden.
static makeTitleSafe( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
static namespaceSelector(array $params=[], array $selectAttribs=[])
Build a drop-down box for selecting a namespace.
I won t presume to tell you how to I m just describing the methods I chose to use for myself If you do choose to follow these it will probably be easier for you to collaborate with others on the but if you want to contribute without by all means do which work well I also use K &R brace matching style I know that s a religious issue for some
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
getRequest()
Get the WebRequest being used for this instance.
wfEscapeWikiText( $text)
Escapes the given text so that it may be output using addWikiText() without any linking,...
static submitButton( $contents, array $attrs, array $modifiers=[])
Returns an HTML link element in a string styled as a button (when $wgUseMediaWikiUIEverywhere is enab...
static isIPv4( $ip)
Given a string, determine if it as valid IP in IPv4 only.
usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template to be included in the link
Allows to change the fields on the form that will be generated $name
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException instead of letting the login form give the generic error message that the account does not exist For when the account has been renamed or deleted or an array to pass a message key and parameters block
static radioLabel( $label, $name, $value, $id, $checked=false, $attribs=[])
Convenience function to build an HTML radio button with a label.
static closeElement( $element)
Shortcut to close an XML element.
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 openElement( $element, $attribs=[])
Identical to rawElement(), but has no third parameter and omits the end tag (and the self-closing '/'...
static rawElement( $element, $attribs=[], $contents='')
Returns an HTML element in a string.
this hook is for auditing only or null if authentication failed before getting that far $username
null for the wiki Added in
MediaWiki Linker LinkRenderer null $linkRenderer
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 $request
contributionsSub( $userObj)
Generates the subheading with links.
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.
static isExternal( $username)
Tells whether the username is external or not.
outputHeader( $summaryMessageKey='')
Outputs a summary message on top of special pages Per default the message key is the canonical name o...
including( $x=null)
Whether the special page is being evaluated via transclusion.
static getCanonicalName( $index)
Returns the canonical (English) name for a given index.
Special:Contributions, show user contributions in a paged list.
static isIPAddress( $ip)
Determine if a string is as valid IP address or network (CIDR prefix).
static checkLabel( $label, $name, $id, $checked=false, $attribs=[])
Convenience function to build an HTML checkbox with a label.