MediaWiki REL1_32
|
B/C adapter for turning a DifferenceEngine into a SlotDiffRenderer. More...
Public Member Functions | |
__construct (DifferenceEngine $differenceEngine) | |
addModules (OutputPage $output) | |
Add modules needed for correct styling/behavior of the diff. | |
getDiff (Content $oldContent=null, Content $newContent=null) | |
@inheritDoc | |
getExtraCacheKeys () | |
Return any extra keys to split the diff cache by. | |
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(). | |
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.
DifferenceEngineSlotDiffRenderer::__construct | ( | DifferenceEngine | $differenceEngine | ) |
Definition at line 36 of file DifferenceEngineSlotDiffRenderer.php.
References $differenceEngine, and CONTENT_MODEL_WIKITEXT.
DifferenceEngineSlotDiffRenderer::addModules | ( | OutputPage | $output | ) |
Add modules needed for correct styling/behavior of the diff.
OutputPage | $output |
Reimplemented from SlotDiffRenderer.
Definition at line 53 of file DifferenceEngineSlotDiffRenderer.php.
References $output.
DifferenceEngineSlotDiffRenderer::getDiff | ( | Content | $oldContent = null, |
Content | $newContent = null ) |
@inheritDoc
Reimplemented from SlotDiffRenderer.
Definition at line 48 of file DifferenceEngineSlotDiffRenderer.php.
References SlotDiffRenderer\normalizeContents().
DifferenceEngineSlotDiffRenderer::getExtraCacheKeys | ( | ) |
Return any extra keys to split the diff cache by.
Reimplemented from SlotDiffRenderer.
Definition at line 67 of file DifferenceEngineSlotDiffRenderer.php.
|
private |
Definition at line 34 of file DifferenceEngineSlotDiffRenderer.php.
Referenced by __construct().