MediaWiki REL1_32
CustomDifferenceEngine.php
Go to the documentation of this file.
1<?php
2
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}
getDiffBodyCacheKeyParams()
Get the cache key parameters.
showDiffStyle()
Add style sheets for diff display.
generateContentDiffBody(Content $old, Content $new)
Generate a diff, no caching.
DifferenceEngine is responsible for rendering the difference between two revisions as HTML.
Base interface for content objects.
Definition Content.php:34
getNativeData()
Returns native representation of the data.
$params