MediaWiki REL1_40
SpecialAllMyUploads.php
Go to the documentation of this file.
1<?php
28
35 public function __construct() {
36 parent::__construct( 'AllMyUploads' );
37 $this->mAllowedRedirectParams = [ 'limit', 'ilsearch' ];
38 }
39
44 public function getRedirect( $subpage ) {
45 $this->mAddedRedirectParams['ilshowall'] = 1;
46
47 return SpecialPage::getTitleFor( 'Listfiles', $this->getUser()->getName() );
48 }
49
56 public function personallyIdentifiableTarget() {
57 return true;
58 }
59}
Represents a title within MediaWiki.
Definition Title.php:82
Shortcut to construct a special page alias.
Special page pointing to current user's uploaded files (including old versions).
personallyIdentifiableTarget()
Target identifies a specific User.
getName()
Get the name of this Special Page.
getUser()
Shortcut to get the User executing this instance.
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,...