MediaWiki  master
SpecialMytalk.php
Go to the documentation of this file.
1 <?php
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 }
getRedirect( $subpage)
personallyIdentifiableTarget()
Target identifies a specific User.
static makeTitle( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
Definition: Title.php:584
getName()
Get the name of this Special Page.
Special page pointing to current user&#39;s talk page.
getUser()
Shortcut to get the User executing this instance.
Superclass for any RedirectSpecialPage which redirects the user to a particular article (as opposed t...
const NS_USER_TALK
Definition: Defines.php:63