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

Class for generating diff rows for a given set of old and new values. More...

Public Member Functions

 __construct ( $oldName, $newName, $oldValuesHtml, $newValuesHtml)
 
 generateHtml ()
 Generates HTML for a diffOP.
 

Private Member Functions

 generateHeaderHtml ()
 Generates HTML for the header of the diff operation.
 
 generateDeletedCells ()
 
 generateAddedCells ()
 
 generateEmptyCells ()
 
 generateValueHtml (array $values)
 Generates HTML from a given value or array of values.
 

Private Attributes

 $oldName
 
 $newName
 
 $oldValues
 
 $newValues
 

Detailed Description

Class for generating diff rows for a given set of old and new values.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Diff\DiffOpValueFormatter::__construct (   $oldName,
  $newName,
  $oldValuesHtml,
  $newValuesHtml 
)
Parameters
string$oldNameHTML of old name
string$newNameHTML of new name
string | string[] | null$oldValuesHtmlHTML of old value(s)
string | string[] | null$newValuesHtmlHTML of new value(s)

Member Function Documentation

◆ generateAddedCells()

Wikibase\Repo\Diff\DiffOpValueFormatter::generateAddedCells ( )
private
Returns
string HTML

◆ generateDeletedCells()

Wikibase\Repo\Diff\DiffOpValueFormatter::generateDeletedCells ( )
private
Returns
string HTML

◆ generateEmptyCells()

Wikibase\Repo\Diff\DiffOpValueFormatter::generateEmptyCells ( )
private
Returns
string HTML

◆ generateHeaderHtml()

Wikibase\Repo\Diff\DiffOpValueFormatter::generateHeaderHtml ( )
private

Generates HTML for the header of the diff operation.

Returns
string HTML

◆ generateHtml()

Wikibase\Repo\Diff\DiffOpValueFormatter::generateHtml ( )

Generates HTML for a diffOP.

Returns
string HTML

◆ generateValueHtml()

Wikibase\Repo\Diff\DiffOpValueFormatter::generateValueHtml ( array  $values)
private

Generates HTML from a given value or array of values.

Parameters
string[]$valuesHTML
Returns
string HTML

Member Data Documentation

◆ $newName

Wikibase\Repo\Diff\DiffOpValueFormatter::$newName
private

◆ $newValues

Wikibase\Repo\Diff\DiffOpValueFormatter::$newValues
private

◆ $oldName

Wikibase\Repo\Diff\DiffOpValueFormatter::$oldName
private

◆ $oldValues

Wikibase\Repo\Diff\DiffOpValueFormatter::$oldValues
private

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