MediaWiki  master
DifferenceEngineSlotDiffRenderer Class Reference

B/C adapter for turning a DifferenceEngine into a SlotDiffRenderer. More...

Inheritance diagram for DifferenceEngineSlotDiffRenderer:
Collaboration diagram for DifferenceEngineSlotDiffRenderer:

Public Member Functions

 __construct (DifferenceEngine $differenceEngine)
 addModules (OutputPage $output)
 getDiff (Content $oldContent=null, Content $newContent=null)
 getExtraCacheKeys ()
- Public Member Functions inherited from SlotDiffRenderer
 addModules (OutputPage $output)
 Add modules needed for correct styling/behavior of the diff. More...
 getDiff (Content $oldContent=null, Content $newContent=null)
 Get a diff between two content objects. More...
 getExtraCacheKeys ()
 Return any extra keys to split the diff cache by. More...

Private Attributes

DifferenceEngine $differenceEngine

Additional Inherited Members

- Protected Member Functions inherited from SlotDiffRenderer
 normalizeContents (Content &$oldContent=null, Content &$newContent=null, $allowedClasses=null)
 Helper method to normalize the input of getDiff(). More...

Detailed Description

B/C adapter for turning a DifferenceEngine into a SlotDiffRenderer.

Before SlotDiffRenderer was introduced, getDiff() functionality was provided by DifferenceEngine subclasses. Convert such a subclass into a SlotDiffRenderer.


Definition at line 31 of file DifferenceEngineSlotDiffRenderer.php.

Constructor & Destructor Documentation

◆ __construct()

DifferenceEngineSlotDiffRenderer::__construct ( DifferenceEngine  $differenceEngine)

Member Function Documentation

◆ addModules()

DifferenceEngineSlotDiffRenderer::addModules ( OutputPage  $output)

Definition at line 53 of file DifferenceEngineSlotDiffRenderer.php.

References ContextSource\getOutput(), and null.

◆ getDiff()

DifferenceEngineSlotDiffRenderer::getDiff ( Content  $oldContent = null,
Content  $newContent = null 

◆ getExtraCacheKeys()

DifferenceEngineSlotDiffRenderer::getExtraCacheKeys ( )

Definition at line 67 of file DifferenceEngineSlotDiffRenderer.php.

Member Data Documentation

◆ $differenceEngine

DifferenceEngine DifferenceEngineSlotDiffRenderer::$differenceEngine

Definition at line 34 of file DifferenceEngineSlotDiffRenderer.php.

Referenced by __construct().

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