123456789101112131415161718192021222324 |
- <?php
- class CustomDifferenceEngine extends DifferenceEngine {
- public function __construct() {
- parent::__construct();
- }
- public function generateContentDiffBody( Content $old, Content $new ) {
- return $old->getNativeData() . '|' . $new->getNativeData();
- }
- public function showDiffStyle() {
- $this->getOutput()->addModules( 'foo' );
- }
- public function getDiffBodyCacheKeyParams() {
- $params = parent::getDiffBodyCacheKeyParams();
- $params[] = 'foo';
- return $params;
- }
- }
|