MediaWiki master
SpecialAllMyUploads.php
Go to the documentation of this file.
1<?php
22
26
34 public function __construct() {
35 parent::__construct( 'AllMyUploads' );
36 $this->mAllowedRedirectParams = [ 'limit', 'ilsearch' ];
37 }
38
43 public function getRedirect( $subpage ) {
44 $this->mAddedRedirectParams['ilshowall'] = 1;
45
46 return SpecialPage::getTitleFor( 'Listfiles', $this->getUser()->getName() );
47 }
48
55 public function personallyIdentifiableTarget() {
56 return true;
57 }
58}
63class_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 canonical, unlocalized name of this special page without namespace.
Redirect to current user's uploaded files, including old versions.
personallyIdentifiableTarget()
Target identifies a specific User.
Represents a title within MediaWiki.
Definition Title.php:79