MediaWiki  1.34.0
SpecialAllMyUploads.php
Go to the documentation of this file.
1 <?php
33  public function __construct() {
34  parent::__construct( 'AllMyUploads' );
35  $this->mAllowedRedirectParams = [ 'limit', 'ilsearch' ];
36  }
37 
42  public function getRedirect( $subpage ) {
43  $this->mAddedRedirectParams['ilshowall'] = 1;
44 
45  return SpecialPage::getTitleFor( 'Listfiles', $this->getUser()->getName() );
46  }
47 
54  public function personallyIdentifiableTarget() {
55  return true;
56  }
57 }
SpecialAllMyUploads\__construct
__construct()
Definition: SpecialAllMyUploads.php:33
SpecialAllMyUploads
Special page pointing to current user's uploaded files (including old versions).
Definition: SpecialAllMyUploads.php:32
SpecialPage\getTitleFor
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,...
Definition: SpecialPage.php:83
SpecialAllMyUploads\personallyIdentifiableTarget
personallyIdentifiableTarget()
Target identifies a specific User.
Definition: SpecialAllMyUploads.php:54
SpecialPage\getName
getName()
Get the name of this Special Page.
Definition: SpecialPage.php:153
RedirectSpecialPage
Shortcut to construct a special page alias.
Definition: RedirectSpecialPage.php:29
SpecialPage\getUser
getUser()
Shortcut to get the User executing this instance.
Definition: SpecialPage.php:729
SpecialAllMyUploads\getRedirect
getRedirect( $subpage)
Definition: SpecialAllMyUploads.php:42