MediaWiki master
SpecialMyuploads.php
Go to the documentation of this file.
1<?php
22
26
33 public function __construct() {
34 parent::__construct( 'Myuploads' );
35 $this->mAllowedRedirectParams = [ 'limit', 'ilshowall', 'ilsearch' ];
36 }
37
42 public function getRedirect( $subpage ) {
43 return SpecialPage::getTitleFor( 'Listfiles', $this->getUser()->getName() );
44 }
45
52 public function personallyIdentifiableTarget() {
53 return true;
54 }
55}
60class_alias( SpecialMyuploads::class, 'SpecialMyuploads' );
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:Listfiles for the current user's name or IP.
personallyIdentifiableTarget()
Target identifies a specific User.
Represents a title within MediaWiki.
Definition Title.php:79