Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4093053
CustomDifferenceEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
508 B
Referenced Files
None
Subscribers
None
CustomDifferenceEngine.php
View Options
<?php
use
MediaWiki\Content\Content
;
class
CustomDifferenceEngine
extends
DifferenceEngine
{
public
function
__construct
()
{
parent
::
__construct
();
}
public
function
generateContentDiffBody
(
Content
$old
,
Content
$new
)
{
return
$old
->
getText
()
.
'|'
.
$new
->
getText
();
}
public
function
showDiffStyle
()
{
$this
->
getOutput
()->
addModules
(
'foo'
);
}
public
function
getDiffBodyCacheKeyParams
()
{
$params
=
parent
::
getDiffBodyCacheKeyParams
();
$params
[]
=
'foo'
;
return
$params
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 18 2026, 12:37 (4 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b2/30/aca2c710f7b4a1be25fd40a74d4a
Default Alt Text
CustomDifferenceEngine.php (508 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment