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

Protected Member Functions

 visualizeEntityDiff (EntityDiff $diff)
 Generates and returns an HTML visualization of the provided EntityDiff.
 
 visualizeRedirectDiff (Diff $diff)
 Generates and returns an HTML visualization of the provided redirect Diff.
 
 getClaimDiffHtml (DiffOp $claimDiffOp)
 

Private Attributes

 $messageLocalizer
 
 $claimDiffer
 
 $claimDiffVisualizer
 

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 )

Member Function Documentation

◆ getClaimDiffHtml()

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

◆ 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

◆ $messageLocalizer

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

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