MediaWiki
REL1_37
SpecialMytalk.php
Go to the documentation of this file.
1
<?php
32
class
SpecialMytalk
extends
RedirectSpecialArticle
{
33
public
function
__construct
() {
34
parent::__construct(
'Mytalk'
);
35
}
36
41
public
function
getRedirect
( $subpage ) {
42
if
( $subpage ===
null
|| $subpage ===
''
) {
43
return
Title::makeTitle(
NS_USER_TALK
, $this->
getUser
()->
getName
() );
44
}
45
46
return
Title::makeTitle(
NS_USER_TALK
, $this->
getUser
()->
getName
() .
'/'
. $subpage );
47
}
48
55
public
function
personallyIdentifiableTarget
() {
56
return
true
;
57
}
58
}
NS_USER_TALK
const NS_USER_TALK
Definition
Defines.php:67
RedirectSpecialArticle
Superclass for any RedirectSpecialPage which redirects the user to a particular article (as opposed t...
Definition
RedirectSpecialArticle.php:89
SpecialMytalk
Special page pointing to current user's talk page.
Definition
SpecialMytalk.php:32
SpecialMytalk\personallyIdentifiableTarget
personallyIdentifiableTarget()
Target identifies a specific User.
Definition
SpecialMytalk.php:55
SpecialMytalk\__construct
__construct()
Definition
SpecialMytalk.php:33
SpecialMytalk\getRedirect
getRedirect( $subpage)
Definition
SpecialMytalk.php:41
SpecialPage\getName
getName()
Get the name of this Special Page.
Definition
SpecialPage.php:179
SpecialPage\getUser
getUser()
Shortcut to get the User executing this instance.
Definition
SpecialPage.php:800
includes
specials
redirects
SpecialMytalk.php
Generated on Fri Apr 5 2024 23:40:57 for MediaWiki by
1.9.8