MediaWiki  1.23.6
UnifiedDiffFormatter.php
Go to the documentation of this file.
1 <?php
32 
34  protected $leadingContextLines = 2;
35 
37  protected $trailingContextLines = 2;
38 
42  protected function added( $lines ) {
43  $this->lines( $lines, '+' );
44  }
45 
49  protected function deleted( $lines ) {
50  $this->lines( $lines, '-' );
51  }
52 
57  protected function changed( $orig, $closing ) {
58  $this->deleted( $orig );
59  $this->added( $closing );
60  }
61 
70  protected function blockHeader( $xbeg, $xlen, $ybeg, $ylen ) {
71  return "@@ -$xbeg,$xlen +$ybeg,$ylen @@";
72  }
73 
74 }
DiffFormatter
Base class for diff formatters.
Definition: DiffFormatter.php:36
UnifiedDiffFormatter\changed
changed( $orig, $closing)
Definition: UnifiedDiffFormatter.php:55
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
UnifiedDiffFormatter\deleted
deleted( $lines)
Definition: UnifiedDiffFormatter.php:47
UnifiedDiffFormatter\$trailingContextLines
int $trailingContextLines
Definition: UnifiedDiffFormatter.php:35
UnifiedDiffFormatter\blockHeader
blockHeader( $xbeg, $xlen, $ybeg, $ylen)
Definition: UnifiedDiffFormatter.php:68
$lines
$lines
Definition: router.php:65
UnifiedDiffFormatter
A formatter that outputs unified diffs.
Definition: UnifiedDiffFormatter.php:31
UnifiedDiffFormatter\$leadingContextLines
int $leadingContextLines
Definition: UnifiedDiffFormatter.php:33
DiffFormatter\lines
lines( $lines, $prefix=' ')
Writes all (optionally prefixed) lines to the output buffer, separated by newlines.
Definition: DiffFormatter.php:206
UnifiedDiffFormatter\added
added( $lines)
Definition: UnifiedDiffFormatter.php:40