MediaWiki
REL1_33
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->getText() .
'|'
. $new->getText();
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:51
Content
Base interface for content objects.
Definition
Content.php:34
$params
$params
Definition
styleTest.css.php:44
tests
phpunit
includes
diff
CustomDifferenceEngine.php
Generated on Mon Nov 25 2024 15:50:59 for MediaWiki by
1.10.0