Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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.
 

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

. 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\BasicDiffView, and Wikibase\Repo\Diff\ItemDiffView.


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