22 parent::__construct(
'Mylog' );
24 $this->mAllowedRedirectParams = [
'type',
'subtype',
'page',
'pattern',
25 'tagfilter',
'tagInvert',
'offset',
'dir',
'offender',
26 'year',
'month',
'day' ];
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 ===
'' ) {
66 $subpages = LogPage::validTypes();
77class_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.