Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Interactors\ItemMergeStatus Class Reference

A Status representing the result of an ItemMergeInteractor. More...

+ Inheritance diagram for Wikibase\Repo\Interactors\ItemMergeStatus:
+ Collaboration diagram for Wikibase\Repo\Interactors\ItemMergeStatus:

Public Member Functions

 getFromEntityRevision ()
 The modified source item, after it was merged but before it was potentially redirected.
 
 getToEntityRevision ()
 The modified target item, after it was merged.
 
 getRedirected ()
 Whether the redirect was successful.
 
- Public Member Functions inherited from Wikibase\Repo\TempUserStatus
 getSavedTempUser ()
 Get the temporary user that was created as part of the action that resulted in this status, or null if no temporary user was created.
 
 getContext ()
 Get the context that should be used for any further actions.
 

Static Public Member Functions

static newMerge (EntityRevision $fromEntityRevision, EntityRevision $toEntityRevision, ?UserIdentity $savedTempUser, IContextSource $context, bool $redirected=null)
 

Additional Inherited Members

- Static Protected Member Functions inherited from Wikibase\Repo\TempUserStatus
static newTempUserStatus (array $data, ?UserIdentity $savedTempUser, IContextSource $context)
 

Detailed Description

A Status representing the result of an ItemMergeInteractor.

Member Function Documentation

◆ getFromEntityRevision()

Wikibase\Repo\Interactors\ItemMergeStatus::getFromEntityRevision ( )

The modified source item, after it was merged but before it was potentially redirected.

Only meaningful if the status is OK.

◆ getRedirected()

Wikibase\Repo\Interactors\ItemMergeStatus::getRedirected ( )

Whether the redirect was successful.

Only meaningful if the status is OK.

◆ getToEntityRevision()

Wikibase\Repo\Interactors\ItemMergeStatus::getToEntityRevision ( )

The modified target item, after it was merged.

Only meaningful if the status is OK.

◆ newMerge()

static Wikibase\Repo\Interactors\ItemMergeStatus::newMerge ( EntityRevision $fromEntityRevision,
EntityRevision $toEntityRevision,
?UserIdentity $savedTempUser,
IContextSource $context,
bool $redirected = null )
static

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