Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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, SiteLookup $siteLookup, EntityIdFormatter $entityIdFormatter, EntityDiffVisualizer $basicEntityDiffVisualizer)
 
 visualizeEntityContentDiff (EntityContentDiff $diff)
 Generates and returns an HTML visualization of the provided EntityContentDiff.
 

Private Member Functions

 visualizeSiteLinkDiff (EntityDiff $diff)
 Generates and returns an HTML visualization of the site link part of the provided EntityDiff (which must really be an ItemDiff).
 

Private Attributes

 $messageLocalizer
 
 $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,
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.

◆ visualizeSiteLinkDiff()

Wikibase\Repo\Diff\ItemDiffVisualizer::visualizeSiteLinkDiff ( EntityDiff $diff)
private

Generates and returns an HTML visualization of the site link part of the provided EntityDiff (which must really be an ItemDiff).

Parameters
EntityDiff$diff
Returns
string

Member Data Documentation

◆ $basicEntityDiffVisualizer

Wikibase\Repo\Diff\ItemDiffVisualizer::$basicEntityDiffVisualizer
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: