Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5982900
CustomDifferenceEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
536 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
):
string
{
return
$old
->
getText
()
.
'|'
.
$new
->
getText
();
}
public
function
showDiffStyle
()
{
$this
->
getOutput
()->
addModules
(
'foo'
);
}
/** @inheritDoc */
public
function
getDiffBodyCacheKeyParams
()
{
$params
=
parent
::
getDiffBodyCacheKeyParams
();
$params
[]
=
'foo'
;
return
$params
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 22:36 (1 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
be/b7/7d48f3a3e41215116a5fbb376cb1
Default Alt Text
CustomDifferenceEngine.php (536 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment