| 1 | <?php |
||
| 12 | class Text_Diff_Renderer_unified extends Text_Diff_Renderer |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Number of leading context "lines" to preserve. |
||
| 16 | */ |
||
| 17 | |||
| 18 | public $_leading_context_lines = 4; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Number of trailing context "lines" to preserve. |
||
| 22 | */ |
||
| 23 | |||
| 24 | public $_trailing_context_lines = 4; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param $xbeg |
||
| 28 | * @param $xlen |
||
| 29 | * @param $ybeg |
||
| 30 | * @param $ylen |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | |||
| 34 | public function _blockHeader($xbeg, $xlen, $ybeg, $ylen) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param $lines |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | |||
| 52 | public function _added($lines) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @param $lines |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | |||
| 62 | public function _deleted($lines) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param $orig |
||
| 69 | * @param $final |
||
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | |||
| 73 | public function _changed($orig, $final) |
||
| 77 | } |
||
| 78 |