[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Diff API: WP_Text_Diff_Renderer_Table class
File Size: | 623 lines (19 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
WP_Text_Diff_Renderer_Table:: (18 methods):
__construct()
_startBlock()
_lines()
addedLine()
deletedLine()
contextLine()
emptyLine()
_added()
_deleted()
_context()
_changed()
interleave_changed_lines()
compute_string_distance()
difference()
__get()
__set()
__isset()
__unset()
Class: WP_Text_Diff_Renderer_Table - X-Ref
Table renderer to display the diff lines.__construct( $params = array() X-Ref |
Constructor - Call parent constructor with params array. This will set class properties based on the key value pairs in the array. param: array $params |
_startBlock( $header ) X-Ref |
param: string $header return: string |
_lines( $lines, $prefix = ' ' ) X-Ref |
param: array $lines param: string $prefix |
addedLine( $line ) X-Ref |
param: string $line HTML-escape the value. return: string |
deletedLine( $line ) X-Ref |
param: string $line HTML-escape the value. return: string |
contextLine( $line ) X-Ref |
param: string $line HTML-escape the value. return: string |
emptyLine() X-Ref |
return: string |
_added( $lines, $encode = true ) X-Ref |
param: array $lines param: bool $encode return: string |
_deleted( $lines, $encode = true ) X-Ref |
param: array $lines param: bool $encode return: string |
_context( $lines, $encode = true ) X-Ref |
param: array $lines param: bool $encode return: string |
_changed( $orig, $final ) X-Ref |
Process changed lines to do word-by-word diffs for extra highlighting. (TRAC style) sometimes these lines can actually be deleted or added rows. We do additional processing to figure that out param: array $orig param: array $final return: string |
interleave_changed_lines( $orig, $final ) X-Ref |
Takes changed blocks and matches which rows in orig turned into which rows in final. param: array $orig Lines of the original version of the text. param: array $final Lines of the final version of the text. return: array { |
compute_string_distance( $string1, $string2 ) X-Ref |
Computes a number that is intended to reflect the "distance" between two strings. param: string $string1 param: string $string2 return: int |
difference( $a, $b ) X-Ref |
param: int $a param: int $b return: int |
__get( $name ) X-Ref |
Make private properties readable for backward compatibility. param: string $name Property to get. return: mixed A declared property's value, else null. |
__set( $name, $value ) X-Ref |
Make private properties settable for backward compatibility. param: string $name Property to check if set. param: mixed $value Property value. |
__isset( $name ) X-Ref |
Make private properties checkable for backward compatibility. param: string $name Property to check if set. return: bool Whether the property is set. |
__unset( $name ) X-Ref |
Make private properties un-settable for backward compatibility. param: string $name Property to unset. |
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |