MediaWiki  1.23.15
SpecialMyRedirectPages.php
Go to the documentation of this file.
1 <?php
33  function __construct() {
34  parent::__construct( 'Mypage' );
35  }
36 
37  function getRedirect( $subpage ) {
38  if ( strval( $subpage ) !== '' ) {
39  return Title::makeTitle( NS_USER, $this->getUser()->getName() . '/' . $subpage );
40  } else {
41  return Title::makeTitle( NS_USER, $this->getUser()->getName() );
42  }
43  }
44 
51  public function personallyIdentifiableTarget() {
52  return true;
53  }
54 }
55 
62  function __construct() {
63  parent::__construct( 'Mytalk' );
64  }
65 
66  function getRedirect( $subpage ) {
67  if ( strval( $subpage ) !== '' ) {
68  return Title::makeTitle( NS_USER_TALK, $this->getUser()->getName() . '/' . $subpage );
69  } else {
70  return Title::makeTitle( NS_USER_TALK, $this->getUser()->getName() );
71  }
72  }
73 
80  public function personallyIdentifiableTarget() {
81  return true;
82  }
83 }
84 
91  function __construct() {
92  parent::__construct( 'Mycontributions' );
93  $this->mAllowedRedirectParams = array( 'limit', 'namespace', 'tagfilter',
94  'offset', 'dir', 'year', 'month', 'feed' );
95  }
96 
97  function getRedirect( $subpage ) {
98  return SpecialPage::getTitleFor( 'Contributions', $this->getUser()->getName() );
99  }
100 
107  public function personallyIdentifiableTarget() {
108  return true;
109  }
110 }
111 
118  function __construct() {
119  parent::__construct( 'Myuploads' );
120  $this->mAllowedRedirectParams = array( 'limit', 'ilshowall', 'ilsearch' );
121  }
122 
123  function getRedirect( $subpage ) {
124  return SpecialPage::getTitleFor( 'Listfiles', $this->getUser()->getName() );
125  }
126 
133  public function personallyIdentifiableTarget() {
134  return true;
135  }
136 }
137 
144  function __construct() {
145  parent::__construct( 'AllMyUploads' );
146  $this->mAllowedRedirectParams = array( 'limit', 'ilsearch' );
147  }
148 
149  function getRedirect( $subpage ) {
150  $this->mAddedRedirectParams['ilshowall'] = 1;
151 
152  return SpecialPage::getTitleFor( 'Listfiles', $this->getUser()->getName() );
153  }
154 
161  public function personallyIdentifiableTarget() {
162  return true;
163  }
164 }
Title\makeTitle
static & makeTitle( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
Definition: Title.php:398
SpecialMycontributions\__construct
__construct()
Definition: SpecialMyRedirectPages.php:91
SpecialMytalk\personallyIdentifiableTarget
personallyIdentifiableTarget()
Target identifies a specific User.
Definition: SpecialMyRedirectPages.php:80
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
SpecialAllMyUploads\__construct
__construct()
Definition: SpecialMyRedirectPages.php:144
SpecialAllMyUploads
Special page pointing to current user's uploaded files (including old versions).
Definition: SpecialMyRedirectPages.php:143
SpecialMypage
Special page pointing to current user's user page.
Definition: SpecialMyRedirectPages.php:32
SpecialMypage\getRedirect
getRedirect( $subpage)
If the special page is a redirect, then get the Title object it redirects to.
Definition: SpecialMyRedirectPages.php:37
SpecialMycontributions
Special page pointing to current user's contributions.
Definition: SpecialMyRedirectPages.php:90
SpecialMyuploads\personallyIdentifiableTarget
personallyIdentifiableTarget()
Target identifies a specific User.
Definition: SpecialMyRedirectPages.php:133
SpecialPage\getTitleFor
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name.
Definition: SpecialPage.php:74
SpecialAllMyUploads\personallyIdentifiableTarget
personallyIdentifiableTarget()
Target identifies a specific User.
Definition: SpecialMyRedirectPages.php:161
SpecialPage\getName
getName()
Get the name of this Special Page.
Definition: SpecialPage.php:139
RedirectSpecialPage
Shortcut to construct a special page alias.
Definition: RedirectSpecialPage.php:29
SpecialMyuploads\getRedirect
getRedirect( $subpage)
If the special page is a redirect, then get the Title object it redirects to.
Definition: SpecialMyRedirectPages.php:123
SpecialMytalk\__construct
__construct()
Definition: SpecialMyRedirectPages.php:62
SpecialMycontributions\personallyIdentifiableTarget
personallyIdentifiableTarget()
Target identifies a specific User.
Definition: SpecialMyRedirectPages.php:107
SpecialMycontributions\getRedirect
getRedirect( $subpage)
If the special page is a redirect, then get the Title object it redirects to.
Definition: SpecialMyRedirectPages.php:97
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
SpecialPage\getUser
getUser()
Shortcut to get the User executing this instance.
Definition: SpecialPage.php:545
SpecialMypage\personallyIdentifiableTarget
personallyIdentifiableTarget()
Target identifies a specific User.
Definition: SpecialMyRedirectPages.php:51
RedirectSpecialArticle
Superclass for any RedirectSpecialPage which redirects the user to a particular article (as opposed t...
Definition: RedirectSpecialPage.php:198
NS_USER_TALK
const NS_USER_TALK
Definition: Defines.php:82
SpecialAllMyUploads\getRedirect
getRedirect( $subpage)
If the special page is a redirect, then get the Title object it redirects to.
Definition: SpecialMyRedirectPages.php:149
SpecialMypage\__construct
__construct()
Definition: SpecialMyRedirectPages.php:33
SpecialMytalk\getRedirect
getRedirect( $subpage)
If the special page is a redirect, then get the Title object it redirects to.
Definition: SpecialMyRedirectPages.php:66
SpecialMytalk
Special page pointing to current user's talk page.
Definition: SpecialMyRedirectPages.php:61
NS_USER
const NS_USER
Definition: Defines.php:81
SpecialMyuploads
Special page pointing to current user's uploaded files.
Definition: SpecialMyRedirectPages.php:117
SpecialMyuploads\__construct
__construct()
Definition: SpecialMyRedirectPages.php:118