Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Specials\SpecialMergeItems Class Reference

Special page for merging one item to another. More...

+ Inheritance diagram for Wikibase\Repo\Specials\SpecialMergeItems:
+ Collaboration diagram for Wikibase\Repo\Specials\SpecialMergeItems:

Public Member Functions

 __construct (EntityIdParser $idParser, EntityTitleLookup $titleLookup, ExceptionLocalizer $exceptionLocalizer, ItemMergeInteractor $interactor, TokenCheckInteractor $tokenCheck)
 
 doesWrites ()
 
 execute ( $subPage)
 
- Public Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 __construct ( $name='', $restriction='', $listed=true)
 
 getDescription ()
 
 setHeaders ()
 

Protected Member Functions

 showExceptionMessage (Exception $ex)
 
 createForm ()
 Creates the HTML form for merging two items. More...
 
 getFormElements ()
 
- Protected Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 getGroupName ()
 
 checkBlocked ()
 Checks if user is blocked, and if blocked throws a UserBlocked. More...
 
 showErrorHTML ( $error)
 

Private Member Functions

 getItemIdParam ( $name)
 
 getStringListParam ( $name)
 
 getTextParam ( $name)
 

Private Attributes

 $idParser
 
 $exceptionLocalizer
 
 $interactor
 
 $titleLookup
 
 $tokenCheck
 

Additional Inherited Members

- Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 $stringNormalizer
 

Detailed Description

Special page for merging one item to another.

Author
Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Specials\SpecialMergeItems::__construct ( EntityIdParser  $idParser,
EntityTitleLookup  $titleLookup,
ExceptionLocalizer  $exceptionLocalizer,
ItemMergeInteractor  $interactor,
TokenCheckInteractor  $tokenCheck 
)

Member Function Documentation

◆ createForm()

Wikibase\Repo\Specials\SpecialMergeItems::createForm ( )
protected

Creates the HTML form for merging two items.

◆ doesWrites()

Wikibase\Repo\Specials\SpecialMergeItems::doesWrites ( )

◆ execute()

Wikibase\Repo\Specials\SpecialMergeItems::execute (   $subPage)
See also
SpecialWikibasePage::execute
Parameters
string | null$subPage

Reimplemented from Wikibase\Repo\Specials\SpecialWikibasePage.

◆ getFormElements()

Wikibase\Repo\Specials\SpecialMergeItems::getFormElements ( )
protected
Returns
array[]

◆ getItemIdParam()

Wikibase\Repo\Specials\SpecialMergeItems::getItemIdParam (   $name)
private
Parameters
string$name
Returns
ItemId|null
Exceptions
UserInputException

◆ getStringListParam()

Wikibase\Repo\Specials\SpecialMergeItems::getStringListParam (   $name)
private

◆ getTextParam()

Wikibase\Repo\Specials\SpecialMergeItems::getTextParam (   $name)
private

◆ showExceptionMessage()

Wikibase\Repo\Specials\SpecialMergeItems::showExceptionMessage ( Exception  $ex)
protected

Member Data Documentation

◆ $exceptionLocalizer

Wikibase\Repo\Specials\SpecialMergeItems::$exceptionLocalizer
private

◆ $idParser

Wikibase\Repo\Specials\SpecialMergeItems::$idParser
private

◆ $interactor

Wikibase\Repo\Specials\SpecialMergeItems::$interactor
private

◆ $titleLookup

Wikibase\Repo\Specials\SpecialMergeItems::$titleLookup
private

◆ $tokenCheck

Wikibase\Repo\Specials\SpecialMergeItems::$tokenCheck
private

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