WPDev.one
Core Class

WP_Text_Diff_Renderer_Table

class WP_Text_Diff_Renderer_Table // Constructor: function Object() { [native code] }

Table renderer to display the diff lines.

Methods 18 methods

Method / Return Description
__construct()
void

Constructor - Call parent constructor with params array.

Parameters: $params: mixed
_startBlock()
string

No description available.

Parameters: $header: mixed
_lines()
void

No description available.

Parameters: $lines: mixed, $prefix: mixed
addedLine()
string

No description available.

Parameters: $line: mixed
deletedLine()
string

No description available.

Parameters: $line: mixed
contextLine()
string

No description available.

Parameters: $line: mixed
emptyLine()
string

No description available.

_added()
string

No description available.

Parameters: $lines: mixed, $encode: mixed
_deleted()
string

No description available.

Parameters: $lines: mixed, $encode: mixed
_context()
string

No description available.

Parameters: $lines: mixed, $encode: mixed
_changed()
string

Process changed lines to do word-by-word diffs for extra highlighting.

Parameters: $orig: mixed, $final: mixed
interleave_changed_lines()
array

Takes changed blocks and matches which rows in orig turned into which rows in final.

Parameters: $orig: mixed, $final: mixed
compute_string_distance()
int

Computes a number that is intended to reflect the "distance" between two strings.

Parameters: $string1: mixed, $string2: mixed
difference()
int

No description available.

Parameters: $a: mixed, $b: mixed
__get()
mixed

Make private properties readable for backward compatibility.

Parameters: $name: mixed
__set()
void

Make private properties settable for backward compatibility.

Parameters: $name: mixed, $value: mixed
__isset()
bool

Make private properties checkable for backward compatibility.

Parameters: $name: mixed
__unset()
void

Make private properties un-settable for backward compatibility.

Parameters: $name: mixed

Properties

Property / Type Description
$_leading_context_lines
mixed
public
No description available.
$_trailing_context_lines
mixed
public
No description available.
$_title
mixed
public
No description available.
$_title_left
mixed
public
No description available.
$_title_right
mixed
public
No description available.
$_diff_threshold
mixed
public
No description available.
$inline_diff_renderer
mixed
public
No description available.
$_show_split_view
mixed
public
No description available.
$compat_fields
mixed
public
No description available.
$count_cache
mixed
public
No description available.
$difference_cache
mixed
public
No description available.

Class Information

Since Version
2.6.0
Source File
wp-includes/class-wp-text-diff-renderer-table.php
Advertisement