MediaWiki  1.33.0
RenameuserHooks Class Reference

Static Public Member Functions

static onContributionsToolLinks ( $id, Title $nt, array &$tools, SpecialPage $sp)
 Shows link to Special:Renameuser on Special:Contributions/foo. More...
 
static onGetLogTypesOnUser (array &$types)
 So users can just type in a username for target and it'll work. More...
 
static onShowMissingArticle (Article $article)
 Show a log if the user has been renamed and point to the new username. More...
 

Detailed Description

Definition at line 3 of file RenameuserHooks.php.

Member Function Documentation

◆ onContributionsToolLinks()

static RenameuserHooks::onContributionsToolLinks (   $id,
Title  $nt,
array $tools,
SpecialPage  $sp 
)
static

Shows link to Special:Renameuser on Special:Contributions/foo.

Parameters
int$id
Title$nt
array&$tools
SpecialPage$sp

Definition at line 42 of file RenameuserHooks.php.

References SpecialPage\getLinkRenderer(), Title\getText(), SpecialPage\getTitleFor(), SpecialPage\getUser(), SpecialPage\msg(), and text.

◆ onGetLogTypesOnUser()

static RenameuserHooks::onGetLogTypesOnUser ( array $types)
static

So users can just type in a username for target and it'll work.

Parameters
array&$types

Definition at line 59 of file RenameuserHooks.php.

◆ onShowMissingArticle()

static RenameuserHooks::onShowMissingArticle ( Article  $article)
static

Show a log if the user has been renamed and point to the new username.

Don't show the log if the $oldUserName exists as a user.

Parameters
Article$article

Definition at line 10 of file RenameuserHooks.php.

References $article, $out, $title, ContextSource\getContext(), ContextSource\getTitle(), Title\makeTitle(), User\newFromName(), NS_USER, NS_USER_TALK, and LogEventsList\showLogExtract().


The documentation for this class was generated from the following file: