Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Diff\ItemDiffVisualizer Class Reference

Class for generating views of EntityDiff objects. More...

+ Inheritance diagram for Wikibase\Repo\Diff\ItemDiffVisualizer:
+ Collaboration diagram for Wikibase\Repo\Diff\ItemDiffVisualizer:

Public Member Functions

 __construct (MessageLocalizer $messageLocalizer, ClaimDiffer $claimDiffer, ClaimDifferenceVisualizer $claimDiffView, SiteLookup $siteLookup, EntityIdFormatter $entityIdFormatter, EntityDiffVisualizer $basicEntityDiffVisualizer)
 
 visualizeEntityContentDiff (EntityContentDiff $diff)
 Generates and returns an HTML visualization of the provided EntityContentDiff. More...
 

Protected Member Functions

 visualizeEntityDiff (EntityDiff $diff)
 Generates and returns an HTML visualization of the provided EntityDiff. More...
 

Private Attributes

 $messageLocalizer
 
 $claimDiffer
 
 $claimDiffVisualizer
 
 $siteLookup
 
 $entityIdFormatter
 
 $basicEntityDiffVisualizer
 

Detailed Description

Class for generating views of EntityDiff objects.

Author
Amir Sarabadani

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Diff\ItemDiffVisualizer::__construct ( MessageLocalizer  $messageLocalizer,
ClaimDiffer  $claimDiffer,
ClaimDifferenceVisualizer  $claimDiffView,
SiteLookup  $siteLookup,
EntityIdFormatter  $entityIdFormatter,
EntityDiffVisualizer  $basicEntityDiffVisualizer 
)

Member Function Documentation

◆ visualizeEntityContentDiff()

Wikibase\Repo\Diff\ItemDiffVisualizer::visualizeEntityContentDiff ( EntityContentDiff  $diff)

Generates and returns an HTML visualization of the provided EntityContentDiff.

Parameters
EntityContentDiff$diff
Returns
string

Implements Wikibase\Repo\Diff\EntityDiffVisualizer.

◆ visualizeEntityDiff()

Wikibase\Repo\Diff\ItemDiffVisualizer::visualizeEntityDiff ( EntityDiff  $diff)
protected

Generates and returns an HTML visualization of the provided EntityDiff.

Parameters
EntityDiff$diff
Returns
string

Member Data Documentation

◆ $basicEntityDiffVisualizer

Wikibase\Repo\Diff\ItemDiffVisualizer::$basicEntityDiffVisualizer
private

◆ $claimDiffer

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

◆ $claimDiffVisualizer

Wikibase\Repo\Diff\ItemDiffVisualizer::$claimDiffVisualizer
private

◆ $entityIdFormatter

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

◆ $messageLocalizer

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

◆ $siteLookup

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

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