WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\Domain\Diff\LexemePatcher Class Reference
+ Inheritance diagram for Wikibase\Lexeme\Domain\Diff\LexemePatcher:
+ Collaboration diagram for Wikibase\Lexeme\Domain\Diff\LexemePatcher:

Public Member Functions

 __construct ()
 
 canPatchEntityType ( $entityType)
 
 patchEntity (EntityDocument $lexeme, EntityDiff $patch)
 

Private Member Functions

 getPatchedItemId (Diff $patch)
 
 patchNextFormId (Lexeme $entity, LexemeDiff $patch)
 
 patchNextSenseId (Lexeme $entity, LexemeDiff $patch)
 
 patchForms (Lexeme $lexeme, LexemeDiff $patch)
 
 patchSenses (Lexeme $lexeme, LexemeDiff $patch)
 

Private Attributes

 $termListPatcher
 
 $statementListPatcher
 
 $formPatcher
 
 $sensePatcher
 

Detailed Description

Author
Amir Sarabadani ladsg.nosp@m.roup.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\Domain\Diff\LexemePatcher::__construct ( )

Member Function Documentation

◆ canPatchEntityType()

Wikibase\Lexeme\Domain\Diff\LexemePatcher::canPatchEntityType ( $entityType)
Parameters
string$entityType
Returns
bool

◆ getPatchedItemId()

Wikibase\Lexeme\Domain\Diff\LexemePatcher::getPatchedItemId ( Diff $patch)
private
Parameters
Diff$patch
Exceptions
PatcherException
Returns
ItemId|null|false False in case the diff is valid, but does not contain a change.

◆ patchEntity()

Wikibase\Lexeme\Domain\Diff\LexemePatcher::patchEntity ( EntityDocument $lexeme,
EntityDiff $patch )
Parameters
Lexeme$lexeme
LexemeDiff$patch
Exceptions
InvalidArgumentException

◆ patchForms()

Wikibase\Lexeme\Domain\Diff\LexemePatcher::patchForms ( Lexeme $lexeme,
LexemeDiff $patch )
private

This should never happen, but somehow sometimes a request to remove a form ends up here for unknown reasons. See T326768.

Log what data we have to hopefully help figure out the problem

◆ patchNextFormId()

Wikibase\Lexeme\Domain\Diff\LexemePatcher::patchNextFormId ( Lexeme $entity,
LexemeDiff $patch )
private

◆ patchNextSenseId()

Wikibase\Lexeme\Domain\Diff\LexemePatcher::patchNextSenseId ( Lexeme $entity,
LexemeDiff $patch )
private

◆ patchSenses()

Wikibase\Lexeme\Domain\Diff\LexemePatcher::patchSenses ( Lexeme $lexeme,
LexemeDiff $patch )
private

Member Data Documentation

◆ $formPatcher

Wikibase\Lexeme\Domain\Diff\LexemePatcher::$formPatcher
private

◆ $sensePatcher

Wikibase\Lexeme\Domain\Diff\LexemePatcher::$sensePatcher
private

◆ $statementListPatcher

Wikibase\Lexeme\Domain\Diff\LexemePatcher::$statementListPatcher
private

◆ $termListPatcher

Wikibase\Lexeme\Domain\Diff\LexemePatcher::$termListPatcher
private

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