Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Diff\EntityDiffVisualizerFactory Class Reference

Turns entity change request into ChangeOp objects based on change request deserialization configured for the particular entity type. More...

Public Member Functions

 __construct (array $entityDiffVisualizerInstantiators, MessageLocalizer $messageLocalizer, ClaimDiffer $claimDiffer, ClaimDifferenceVisualizer $claimDiffView, SiteLookup $siteLookup, EntityIdFormatter $entityIdFormatter)
 
 newEntityDiffVisualizer ( $type=null)
 

Private Attributes

 $entityDiffVisualizerInstantiators
 
 $messageLocalizer
 
 $claimDiffer
 
 $claimDiffView
 
 $siteLookup
 
 $entityIdFormatter
 

Detailed Description

Turns entity change request into ChangeOp objects based on change request deserialization configured for the particular entity type.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Diff\EntityDiffVisualizerFactory::__construct ( array  $entityDiffVisualizerInstantiators,
MessageLocalizer  $messageLocalizer,
ClaimDiffer  $claimDiffer,
ClaimDifferenceVisualizer  $claimDiffView,
SiteLookup  $siteLookup,
EntityIdFormatter  $entityIdFormatter 
)
Parameters
callable[]$entityDiffVisualizerInstantiatorsAssociative array mapping entity types (strings) to callbacks instantiating EntityDiffVisualizer objects.
MessageLocalizer$messageLocalizer
ClaimDiffer$claimDiffer
ClaimDifferenceVisualizer$claimDiffView
SiteLookup$siteLookup
EntityIdFormatter$entityIdFormatter

Member Function Documentation

◆ newEntityDiffVisualizer()

Wikibase\Repo\Diff\EntityDiffVisualizerFactory::newEntityDiffVisualizer (   $type = null)
Parameters
string | null$type
Returns
EntityDiffVisualizer

Member Data Documentation

◆ $claimDiffer

Wikibase\Repo\Diff\EntityDiffVisualizerFactory::$claimDiffer
private

◆ $claimDiffView

Wikibase\Repo\Diff\EntityDiffVisualizerFactory::$claimDiffView
private

◆ $entityDiffVisualizerInstantiators

Wikibase\Repo\Diff\EntityDiffVisualizerFactory::$entityDiffVisualizerInstantiators
private

◆ $entityIdFormatter

Wikibase\Repo\Diff\EntityDiffVisualizerFactory::$entityIdFormatter
private

◆ $messageLocalizer

Wikibase\Repo\Diff\EntityDiffVisualizerFactory::$messageLocalizer
private

◆ $siteLookup

Wikibase\Repo\Diff\EntityDiffVisualizerFactory::$siteLookup
private

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