MediaWiki master
SpecialMycontributions.php
Go to the documentation of this file.
1<?php
23
27
34 public function __construct() {
35 parent::__construct( 'Mycontributions' );
36 $this->mAllowedRedirectParams = [ 'limit', 'namespace', 'tagfilter',
37 'offset', 'dir', 'year', 'month', 'feed', 'deletedOnly',
38 'nsInvert', 'associated', 'newOnly', 'topOnly', 'start', 'end' ];
39 }
40
45 public function getRedirect( $subpage ) {
46 return SpecialPage::getTitleFor( 'Contributions', $this->getUser()->getName() );
47 }
48
55 public function personallyIdentifiableTarget() {
56 return true;
57 }
58}
63class_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 canonical, unlocalized name of this special page without namespace.
Redirect to Special:Contributions for the current user's name or IP.
personallyIdentifiableTarget()
Target identifies a specific User.
Represents a title within MediaWiki.
Definition Title.php:79