MediaWiki master
SpecialMyuploads.php
Go to the documentation of this file.
1<?php
28
32
39 public function __construct() {
40 parent::__construct( 'Myuploads' );
41 $this->mAllowedRedirectParams = [ 'limit', 'ilshowall', 'ilsearch' ];
42 }
43
48 public function getRedirect( $subpage ) {
49 return SpecialPage::getTitleFor( 'Listfiles', $this->getUser()->getName() );
50 }
51
58 public function personallyIdentifiableTarget() {
59 return true;
60 }
61}
66class_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.
Special page pointing to current user's uploaded files.
personallyIdentifiableTarget()
Target identifies a specific User.
Represents a title within MediaWiki.
Definition Title.php:78