Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Diff\DiffView Interface Reference

Interface for generating views of DiffOp objects. More...

+ Inheritance diagram for Wikibase\Repo\Diff\DiffView:

Public Member Functions

 getHtml ()
 Builds and returns the HTML to represent the Diff. More...
 

Detailed Description

Interface for generating views of DiffOp objects.

Member Function Documentation

◆ getHtml()

Wikibase\Repo\Diff\DiffView::getHtml ( )

Builds and returns the HTML to represent the Diff.

The HTML returned here is expected to be a set of

elements without any

<tbody>. Each

is expected to contain exactly four

cells. The first two cells represent marker (either a "+" or a "-") and content from the old revision, the last two cells represent marker and content from the new revision. Either pair of cells can be omitted and replaced with an empty

if there is no relevant content on this side.

cells are not expected.

Returns
string HTML

Implemented in Wikibase\Repo\Diff\ItemDiffView, and Wikibase\Repo\Diff\BasicDiffView.


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