24 parent::__construct(
'Mypage' );
26 $this->tempUserConfig = $tempUserConfig;
32 if ( $this->tempUserConfig->isEnabled() && $this->getUser()->isAnon() ) {
35 parent::execute( $subpage );
40 if ( $this->tempUserConfig->isEnabled() && $this->getUser()->isAnon() ) {
44 if ( $subpage ===
null || $subpage ===
'' ) {
66class_alias( SpecialMypage::class,
'SpecialMypage' );
Helper for any RedirectSpecialPage which redirects the user to a particular article (as opposed to us...
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 the current user's user page.
getRedirect( $subpage)
If the special page is a redirect, then get the Title object it redirects to.False otherwise....
execute( $subpage)
to override
__construct(TempUserConfig $tempUserConfig)
personallyIdentifiableTarget()
Target identifies a specific User.