WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes Class Reference

Special page for merging one lexeme into another. More...

+ Inheritance diagram for Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes:
+ Collaboration diagram for Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes:

Public Member Functions

 __construct (array $tags, MergeLexemesInteractor $mergeInteractor, TokenCheckInteractor $tokenCheckInteractor, EntityTitleLookup $titleLookup, ExceptionLocalizer $exceptionLocalizer, PermissionManager $permissionManager, AnonymousEditWarningBuilder $anonymousEditWarningBuilder)
 
 execute ( $subPage)
 
 setHeaders ()
 
 getDescription ()
 

Static Public Member Functions

static factory (PermissionManager $permissionManager, AnonymousEditWarningBuilder $anonymousEditWarningBuilder, EntityTitleLookup $entityTitleLookup, ExceptionLocalizer $exceptionLocalizer, SettingsArray $repoSettings, TokenCheckInteractor $tokenCheckInteractor, MergeLexemesInteractor $mergeLexemesInteractor)
 

Protected Member Functions

 getGroupName ()
 
 showErrorHTML ( $error)
 

Private Member Functions

 checkBlocked ()
 
 showMergeForm ()
 
 getFormElements ()
 
 anonymousEditWarning ()
 
 mergeLexemes (LexemeId $sourceId, LexemeId $targetId)
 
 getTextParam (string $name)
 
 getLexemeId (string $idSerialization)
 
 showSuccessMessage (LexemeId $sourceId, LexemeId $targetId)
 
 showInvalidLexemeIdError ( $id)
 

Private Attributes

const FROM_ID = 'from-id'
 
const TO_ID = 'to-id'
 
const SUCCESS = 'success'
 
array $tags
 
MergeLexemesInteractor $mergeInteractor
 
TokenCheckInteractor $tokenCheckInteractor
 
EntityTitleLookup $titleLookup
 
ExceptionLocalizer $exceptionLocalizer
 
PermissionManager $permissionManager
 
AnonymousEditWarningBuilder $anonymousEditWarningBuilder
 

Detailed Description

Special page for merging one lexeme into another.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::__construct ( array $tags,
MergeLexemesInteractor $mergeInteractor,
TokenCheckInteractor $tokenCheckInteractor,
EntityTitleLookup $titleLookup,
ExceptionLocalizer $exceptionLocalizer,
PermissionManager $permissionManager,
AnonymousEditWarningBuilder $anonymousEditWarningBuilder )

Member Function Documentation

◆ anonymousEditWarning()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::anonymousEditWarning ( )
private

◆ checkBlocked()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::checkBlocked ( )
private

◆ execute()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::execute ( $subPage)

◆ factory()

static Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::factory ( PermissionManager $permissionManager,
AnonymousEditWarningBuilder $anonymousEditWarningBuilder,
EntityTitleLookup $entityTitleLookup,
ExceptionLocalizer $exceptionLocalizer,
SettingsArray $repoSettings,
TokenCheckInteractor $tokenCheckInteractor,
MergeLexemesInteractor $mergeLexemesInteractor )
static

◆ getDescription()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::getDescription ( )

◆ getFormElements()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::getFormElements ( )
private

◆ getGroupName()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::getGroupName ( )
protected

◆ getLexemeId()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::getLexemeId ( string $idSerialization)
private
Parameters
string$idSerialization
Returns
LexemeId|false

◆ getTextParam()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::getTextParam ( string $name)
private

◆ mergeLexemes()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::mergeLexemes ( LexemeId $sourceId,
LexemeId $targetId )
private

◆ setHeaders()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::setHeaders ( )

◆ showErrorHTML()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::showErrorHTML ( $error)
protected

◆ showInvalidLexemeIdError()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::showInvalidLexemeIdError ( $id)
private

◆ showMergeForm()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::showMergeForm ( )
private

◆ showSuccessMessage()

Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::showSuccessMessage ( LexemeId $sourceId,
LexemeId $targetId )
private

Member Data Documentation

◆ $anonymousEditWarningBuilder

AnonymousEditWarningBuilder Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::$anonymousEditWarningBuilder
private

◆ $exceptionLocalizer

ExceptionLocalizer Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::$exceptionLocalizer
private

◆ $mergeInteractor

MergeLexemesInteractor Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::$mergeInteractor
private

◆ $permissionManager

PermissionManager Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::$permissionManager
private

◆ $tags

array Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::$tags
private

◆ $titleLookup

EntityTitleLookup Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::$titleLookup
private

◆ $tokenCheckInteractor

TokenCheckInteractor Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::$tokenCheckInteractor
private

◆ FROM_ID

const Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::FROM_ID = 'from-id'
private

◆ SUCCESS

const Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::SUCCESS = 'success'
private

◆ TO_ID

const Wikibase\Lexeme\MediaWiki\Specials\SpecialMergeLexemes::TO_ID = 'to-id'
private

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