|
Squiz Matrix
4.12.2
|
Public Member Functions | |
| _markChanges ($lines, $prefix, $suffix) | |
| _added ($lines) | |
| _deleted ($lines) | |
| _changed ($orig, $final) | |
| _isCloseTag ($x) | |
| _isOpenTag ($x) | |
| _isOpenBlockTag ($x) | |
| _isCloseBlockTag ($x) | |
| _splitOnWords ($string) | |
| render ($diff) | |
| process ($first, $second) | |
Definition at line 39 of file matrix_diff_highlighter.inc.
| _added | ( | $lines | ) |
Mark up the supplied content as having been added to the document
| array | $lines | The content |
Definition at line 243 of file matrix_diff_highlighter.inc.
| _changed | ( | $orig, | |
| $final | |||
| ) |
Mark the supplied content as having changed in the document
| string | $orig | Original content |
| string | $final | Final content |
Definition at line 274 of file matrix_diff_highlighter.inc.
| _deleted | ( | $lines | ) |
Mark up the supplied content as having been deleted from the document
| array | $lines | The content |
Definition at line 258 of file matrix_diff_highlighter.inc.
| _isCloseBlockTag | ( | $x | ) |
Return true if the input is the closing tag of a block-level element
| string | $x | The tag to test |
Definition at line 376 of file matrix_diff_highlighter.inc.
| _isCloseTag | ( | $x | ) |
Return true if the input is an HTML closing tag
| string | $x | The tag to test |
Definition at line 323 of file matrix_diff_highlighter.inc.
| _isOpenBlockTag | ( | $x | ) |
Return true if the input is the opening tag of a block-level element
| string | $x | The tag to test |
Definition at line 361 of file matrix_diff_highlighter.inc.
| _isOpenTag | ( | $x | ) |
Return true if the input is an HTML opening tag
| string | $x | The tag to test |
Definition at line 338 of file matrix_diff_highlighter.inc.
| _markChanges | ( | $lines, | |
| $prefix, | |||
| $suffix | |||
| ) |
Mark the supplied content as having changed, using the supplied prefix and sufix
| array | $lines | The input lines or words |
| string | $prefix | Thing to put before changed content |
| string | $suffix | Thing to put after changed content |
Definition at line 53 of file matrix_diff_highlighter.inc.
| _splitOnWords | ( | $string | ) |
Split the suplied string into words
This function treats any html tag as a single word
| string | $string | String to split up |
Definition at line 393 of file matrix_diff_highlighter.inc.
| process | ( | $first, | |
| $second | |||
| ) |
Perform the whole difference-calculation and rendering process
| string | $first | The first version of the content |
| string | $second | The second version of the content |
Definition at line 484 of file matrix_diff_highlighter.inc.
| render | ( | $diff | ) |
Render the differences represented by the supplied diff object
| object | $diff | The differences to render |
Definition at line 440 of file matrix_diff_highlighter.inc.