24 parent::__construct(
'Mylog' );
26 $this->tempUserConfig = $tempUserConfig;
28 $this->mAllowedRedirectParams = [
'type',
'subtype',
'page',
'pattern',
29 'tagfilter',
'tagInvert',
'offset',
'dir',
'offender',
30 'year',
'month',
'day' ];
36 if ( $this->tempUserConfig->isEnabled() && $this->getUser()->isAnon() ) {
39 parent::execute( $subpage );
44 if ( $this->tempUserConfig->isEnabled() && $this->getUser()->isAnon() ) {
48 if ( $subpage ===
null || $subpage ===
'' ) {
70 $subpages = LogPage::validTypes();
81class_alias( SpecialMylog::class,
'SpecialMylog' );
Class to simplify the use of log pages.
Shortcut to construct a special page alias.
Parent class for all special pages.
getUser()
Shortcut to get the User executing this instance.
static getSafeTitleFor( $name, $subpage=false)
Get a localised Title object for a page name with a possibly unvalidated subpage.
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.