MediaWiki  1.34.0
SpecialMycontributions.php
Go to the documentation of this file.
1 <?php
33  public function __construct() {
34  parent::__construct( 'Mycontributions' );
35  $this->mAllowedRedirectParams = [ 'limit', 'namespace', 'tagfilter',
36  'offset', 'dir', 'year', 'month', 'feed', 'deletedOnly',
37  'nsInvert', 'associated', 'newOnly', 'topOnly', 'start', 'end' ];
38  }
39 
44  public function getRedirect( $subpage ) {
45  return SpecialPage::getTitleFor( 'Contributions', $this->getUser()->getName() );
46  }
47 
54  public function personallyIdentifiableTarget() {
55  return true;
56  }
57 }
SpecialMycontributions\__construct
__construct()
Definition: SpecialMycontributions.php:33
SpecialMycontributions
Special page pointing to current user's contributions.
Definition: SpecialMycontributions.php:32
SpecialPage\getTitleFor
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,...
Definition: SpecialPage.php:83
SpecialPage\getName
getName()
Get the name of this Special Page.
Definition: SpecialPage.php:153
RedirectSpecialPage
Shortcut to construct a special page alias.
Definition: RedirectSpecialPage.php:29
SpecialMycontributions\personallyIdentifiableTarget
personallyIdentifiableTarget()
Target identifies a specific User.
Definition: SpecialMycontributions.php:54
SpecialMycontributions\getRedirect
getRedirect( $subpage)
Definition: SpecialMycontributions.php:44
SpecialPage\getUser
getUser()
Shortcut to get the User executing this instance.
Definition: SpecialPage.php:729