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, ClaimDiffer $claimDiffer, SiteLookup $siteLookup, EntityIdFormatterFactory $entityIdFormatterFactory, OutputFormatSnakFormatterFactory $snakFormatterFactory)
 
 newEntityDiffVisualizer (?string $type=null, ?IContextSource $context=null)
 

Private Attributes

 $entityDiffVisualizerInstantiators
 
 $claimDiffer
 
 $siteLookup
 
 $entityIdFormatterFactory
 
 $snakFormatterFactory
 

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,
ClaimDiffer $claimDiffer,
SiteLookup $siteLookup,
EntityIdFormatterFactory $entityIdFormatterFactory,
OutputFormatSnakFormatterFactory $snakFormatterFactory )
Parameters
callable[]$entityDiffVisualizerInstantiatorsAssociative array mapping entity types (strings) to callbacks instantiating EntityDiffVisualizer objects.
ClaimDiffer$claimDiffer
SiteLookup$siteLookup
EntityIdFormatterFactory$entityIdFormatterFactory
OutputFormatSnakFormatterFactory$snakFormatterFactory

Member Function Documentation

◆ newEntityDiffVisualizer()

Wikibase\Repo\Diff\EntityDiffVisualizerFactory::newEntityDiffVisualizer ( ?string $type = null,
?IContextSource $context = null )

Member Data Documentation

◆ $claimDiffer

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

◆ $entityDiffVisualizerInstantiators

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

◆ $entityIdFormatterFactory

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

◆ $siteLookup

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

◆ $snakFormatterFactory

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

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