\WP_Text_Diff_Renderer_Table
Table renderer to display the diff lines.
Synopsis
class WP_Text_Diff_Renderer_Table
extends Text_Diff_Renderer
{
- // members
- public integer $_leading_context_lines = 10000;
- public integer $_trailing_context_lines = 10000;
- public float $_diff_threshold = 0.6;
- public string $inline_diff_renderer = 'WP_Text_Diff_Renderer_inline';
- // Inherited members from Text_Diff_Renderer
- public integer $_leading_context_lines;
- public integer $_trailing_context_lines;
- // methods
- public void __construct()
- public string _startBlock()
- public void _lines()
- public string addedLine()
- public string deletedLine()
- public string contextLine()
- public string emptyLine()
- public string _added()
- public string _deleted()
- public string _context()
- public string _changed()
- public unknown interleave_changed_lines()
- public int compute_string_distance()
- public int difference()
- // Inherited methods from Text_Diff_Renderer
- public void Text_Diff_Renderer()
- public array getParams()
- public string render()
- public void _block()
- public void _startDiff()
- public void _endDiff()
- public void _blockHeader()
- public void _startBlock()
- public void _endBlock()
- public void _lines()
- public void _context()
- public void _added()
- public void _deleted()
- public void _changed()
Hierarchy
Extends
Members
public
- $_diff_threshold
—
float
{@internal Missing Description}} - $_leading_context_lines — int
-
$_leading_context_lines
Number of leading context "lines" to preserve. - $_trailing_context_lines — int
-
$_trailing_context_lines
Number of trailing context "lines" to preserve. - $inline_diff_renderer
—
string
Inline display helper object name.
Methods
public
- __construct() — Constructor - Call parent constructor with params array.
- _added()
- _changed() — Process changed lines to do word-by-word diffs for extra highlighting.
- _context()
- _deleted()
- _lines()
- _startBlock()
- addedLine()
- compute_string_distance() — Computes a number that is intended to reflect the "distance" between two strings.
- contextLine()
- deletedLine()
- difference()
- emptyLine()
- interleave_changed_lines() — Takes changed blocks and matches which rows in orig turned into which rows in final.
Inherited from Text_Diff_Renderer
public
- Text_Diff_Renderer() — Constructor.
- _added()
- _block()
- _blockHeader()
- _changed()
- _context()
- _deleted()
- _endBlock()
- _endDiff()
- _lines()
- _startBlock()
- _startDiff()
- getParams() — Get any renderer parameters.
- render() — Renders a diff.