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

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

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

Public Member Functions

 __construct (MessageLocalizer $messageLocalizer, ClaimDiffer $claimDiffer, ClaimDifferenceVisualizer $claimDiffView, SiteLookup $siteLookup, EntityIdFormatter $entityIdFormatter)
 
 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...
 
 visualizeRedirectDiff (Diff $diff)
 Generates and returns an HTML visualization of the provided redirect Diff. More...
 
 getClaimDiffHtml (DiffOp $claimDiffOp)
 

Private Attributes

 $messageLocalizer
 
 $claimDiffer
 
 $claimDiffVisualizer
 
 $siteLookup
 
 $entityIdFormatter
 

Detailed Description

Class for generating views of EntityDiff objects.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Tobias Gritschacher < tobia.nosp@m.s.gr.nosp@m.itsch.nosp@m.ache.nosp@m.r@wik.nosp@m.imed.nosp@m.ia.de >
Daniel kinzler

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getClaimDiffHtml()

Wikibase\Repo\Diff\BasicEntityDiffVisualizer::getClaimDiffHtml ( DiffOp  $claimDiffOp)
protected
Parameters
DiffOp$claimDiffOp
Returns
string HTML
Exceptions
MWException

◆ visualizeEntityContentDiff()

Wikibase\Repo\Diff\BasicEntityDiffVisualizer::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\BasicEntityDiffVisualizer::visualizeEntityDiff ( EntityDiff  $diff)
protected

Generates and returns an HTML visualization of the provided EntityDiff.

Parameters
EntityDiff$diff
Returns
string

◆ visualizeRedirectDiff()

Wikibase\Repo\Diff\BasicEntityDiffVisualizer::visualizeRedirectDiff ( Diff  $diff)
protected

Generates and returns an HTML visualization of the provided redirect Diff.

Parameters
Diff$diff
Returns
string

Member Data Documentation

◆ $claimDiffer

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

◆ $claimDiffVisualizer

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

◆ $entityIdFormatter

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

◆ $messageLocalizer

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

◆ $siteLookup

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

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