MediaWiki
REL1_32
CustomDifferenceEngine.php
Go to the documentation of this file.
1
<?php
2
3
class
CustomDifferenceEngine
extends
DifferenceEngine
{
4
5
public
function
__construct
() {
6
parent::__construct();
7
}
8
9
public
function
generateContentDiffBody
(
Content
$old,
Content
$new ) {
10
return
$old->
getNativeData
() .
'|'
. $new->
getNativeData
();
11
}
12
13
public
function
showDiffStyle
() {
14
$this->
getOutput
()->addModules(
'foo'
);
15
}
16
17
public
function
getDiffBodyCacheKeyParams
() {
18
$params
= parent::getDiffBodyCacheKeyParams();
19
$params
[] =
'foo'
;
20
return
$params
;
21
}
22
23
}
ContextSource\getOutput
getOutput()
Definition
ContextSource.php:112
CustomDifferenceEngine
Definition
CustomDifferenceEngine.php:3
CustomDifferenceEngine\getDiffBodyCacheKeyParams
getDiffBodyCacheKeyParams()
Get the cache key parameters.
Definition
CustomDifferenceEngine.php:17
CustomDifferenceEngine\showDiffStyle
showDiffStyle()
Add style sheets for diff display.
Definition
CustomDifferenceEngine.php:13
CustomDifferenceEngine\__construct
__construct()
Definition
CustomDifferenceEngine.php:5
CustomDifferenceEngine\generateContentDiffBody
generateContentDiffBody(Content $old, Content $new)
Generate a diff, no caching.
Definition
CustomDifferenceEngine.php:9
DifferenceEngine
DifferenceEngine is responsible for rendering the difference between two revisions as HTML.
Definition
DifferenceEngine.php:49
Content
Base interface for content objects.
Definition
Content.php:34
Content\getNativeData
getNativeData()
Returns native representation of the data.
$params
$params
Definition
styleTest.css.php:44
tests
phpunit
includes
diff
CustomDifferenceEngine.php
Generated on Mon Nov 25 2024 15:58:38 for MediaWiki by
1.10.0