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