Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Diff\BasicDiffView Class Reference

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

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

Public Member Functions

 __construct (array $path, Diff $diff)
 
 getHtml ()
 Builds and returns the HTML to represent the Diff.
 

Protected Member Functions

 generateHtmlDiffTableRow (?string $oldHtml, ?string $newHtml)
 Generates an HTML table row for a change diffOp given HTML snippets representing old and new sides of the Diff.
 
 generateDiffHeaderHtml (string $name)
 Generates HTML for the header of the diff operation.
 

Private Member Functions

 getDeletedLine (string $value)
 
 getAddedLine (string $value)
 
 getChangedLine (string $tag, string $value)
 

Private Attributes

 $path
 
 $diff
 

Detailed Description

Class for generating views of DiffOp objects.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Diff\BasicDiffView::__construct ( array $path,
Diff $diff )
Parameters
string[]$path
Diff$diff

Member Function Documentation

◆ generateDiffHeaderHtml()

Wikibase\Repo\Diff\BasicDiffView::generateDiffHeaderHtml ( string $name)
protected

Generates HTML for the header of the diff operation.

◆ generateHtmlDiffTableRow()

Wikibase\Repo\Diff\BasicDiffView::generateHtmlDiffTableRow ( ?string $oldHtml,
?string $newHtml )
protected

Generates an HTML table row for a change diffOp given HTML snippets representing old and new sides of the Diff.

◆ getAddedLine()

Wikibase\Repo\Diff\BasicDiffView::getAddedLine ( string $value)
private

◆ getChangedLine()

Wikibase\Repo\Diff\BasicDiffView::getChangedLine ( string $tag,
string $value )
private

◆ getDeletedLine()

Wikibase\Repo\Diff\BasicDiffView::getDeletedLine ( string $value)
private

◆ getHtml()

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

Builds and returns the HTML to represent the Diff.

Implements Wikibase\Repo\Diff\DiffView.

Member Data Documentation

◆ $diff

Wikibase\Repo\Diff\BasicDiffView::$diff
private

◆ $path

Wikibase\Repo\Diff\BasicDiffView::$path
private

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