24 parent::__construct(
'Mycontributions' );
26 $this->tempUserConfig = $tempUserConfig;
28 $this->mAllowedRedirectParams = [
'limit',
'namespace',
'tagfilter',
29'offset',
'dir',
'year',
'month',
'feed',
'deletedOnly',
30'nsInvert',
'associated',
'newOnly',
'topOnly',
'start',
'end',
36// Redirect to login for anon users when temp accounts are enabled. 37if ( $this->tempUserConfig->isEnabled() && $this->getUser()->isAnon() ) {
40 parent::execute( $subpage );
45if ( $this->tempUserConfig->isEnabled() && $this->getUser()->isAnon() ) {
66class_alias( SpecialMycontributions::class,
'SpecialMycontributions' );
Shortcut to construct a special page alias.
Parent class for all special pages.
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,...
getUser()
Shortcut to get the User executing this instance.
requireLogin( $reasonMsg='exception-nologin-text', $titleMsg='exception-nologin')
If the user is not logged in, throws UserNotLoggedIn error.
getName()
Get the canonical, unlocalized name of this special page without namespace.
Redirect to Special:Contributions for the current user's name or IP.
__construct(TempUserConfig $tempUserConfig)
personallyIdentifiableTarget()
Target identifies a specific User.
execute( $subpage)
to override
getRedirect( $subpage)
If the special page is a redirect, then get the Title object it redirects to.False otherwise....
Interface for temporary user creation config and name matching.