Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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 (AnonymousEditWarningBuilder $anonymousEditWarningBuilder, EntityIdParser $idParser, EntityTitleLookup $titleLookup, ExceptionLocalizer $exceptionLocalizer, ItemMergeInteractor $interactor, bool $isMobileView, 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.
 
 getFormElements ()
 
- Protected Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 getGroupName ()
 
 checkBlocked ()
 Checks if user is blocked, and if blocked throws a UserBlocked.
 
 showErrorHTML ( $error)
 

Private Member Functions

 getItemIdParam (string $name)
 
 getStringListParam (string $name)
 
 getTextParam (string $name)
 
 mergeItems (ItemId $fromId, ItemId $toId, array $ignoreConflicts, $summary)
 
 showSuccess (ItemId $fromId, ItemId $toId, int $newRevisionFromId, int $newRevisionToId)
 

Private Attributes

AnonymousEditWarningBuilder $anonymousEditWarningBuilder
 
EntityIdParser $idParser
 
ExceptionLocalizer $exceptionLocalizer
 
ItemMergeInteractor $interactor
 
EntityTitleLookup $titleLookup
 
TokenCheckInteractor $tokenCheck
 
bool $isMobileView
 

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 ( AnonymousEditWarningBuilder $anonymousEditWarningBuilder,
EntityIdParser $idParser,
EntityTitleLookup $titleLookup,
ExceptionLocalizer $exceptionLocalizer,
ItemMergeInteractor $interactor,
bool $isMobileView,
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 ( string $name)
private
Exceptions
UserInputException

◆ getStringListParam()

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

◆ getTextParam()

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

◆ mergeItems()

Wikibase\Repo\Specials\SpecialMergeItems::mergeItems ( ItemId $fromId,
ItemId $toId,
array $ignoreConflicts,
$summary )
private
Parameters
ItemId$fromId
ItemId$toId
string[]$ignoreConflicts
string$summary

◆ showExceptionMessage()

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

◆ showSuccess()

Wikibase\Repo\Specials\SpecialMergeItems::showSuccess ( ItemId $fromId,
ItemId $toId,
int $newRevisionFromId,
int $newRevisionToId )
private

Member Data Documentation

◆ $anonymousEditWarningBuilder

AnonymousEditWarningBuilder Wikibase\Repo\Specials\SpecialMergeItems::$anonymousEditWarningBuilder
private

◆ $exceptionLocalizer

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

◆ $idParser

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

◆ $interactor

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

◆ $isMobileView

bool Wikibase\Repo\Specials\SpecialMergeItems::$isMobileView
private

◆ $titleLookup

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

◆ $tokenCheck

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

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