MediaWiki 1.41.2
SpecialAllMyUploads.php
Go to the documentation of this file.
1<?php
28
32
39 public function __construct() {
40 parent::__construct( 'AllMyUploads' );
41 $this->mAllowedRedirectParams = [ 'limit', 'ilsearch' ];
42 }
43
48 public function getRedirect( $subpage ) {
49 $this->mAddedRedirectParams['ilshowall'] = 1;
50
51 return SpecialPage::getTitleFor( 'Listfiles', $this->getUser()->getName() );
52 }
53
60 public function personallyIdentifiableTarget() {
61 return true;
62 }
63}
68class_alias( SpecialAllMyUploads::class, 'SpecialAllMyUploads' );
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 uploaded files (including old versions).
personallyIdentifiableTarget()
Target identifies a specific User.
Represents a title within MediaWiki.
Definition Title.php:76