MediaWiki 1.41.2
SpecialMycontributions.php
Go to the documentation of this file.
1<?php
28
32
39 public function __construct() {
40 parent::__construct( 'Mycontributions' );
41 $this->mAllowedRedirectParams = [ 'limit', 'namespace', 'tagfilter',
42 'offset', 'dir', 'year', 'month', 'feed', 'deletedOnly',
43 'nsInvert', 'associated', 'newOnly', 'topOnly', 'start', 'end' ];
44 }
45
50 public function getRedirect( $subpage ) {
51 return SpecialPage::getTitleFor( 'Contributions', $this->getUser()->getName() );
52 }
53
60 public function personallyIdentifiableTarget() {
61 return true;
62 }
63}
68class_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.
getName()
Get the name of this Special Page.
Special page pointing to current user's contributions.
personallyIdentifiableTarget()
Target identifies a specific User.
Represents a title within MediaWiki.
Definition Title.php:76