t3lib_diff Klassenreferenz
Aufstellung aller Elemente
Dokumentation der Elementfunktionen
| t3lib_diff::addClearBuffer |
( |
$ |
clearBuffer, |
|
|
$ |
last = 0 | |
|
) |
| | |
Will bring down the length of strings to < 150 chars if they were longer than 200 chars. This done by preserving the 70 first and last chars and concatenate those strings with "..." and a number indicating the string length
- Parameter:
-
| string | The input string. |
| boolean | If set, it indicates that the string should just end with ... (thus no "complete" ending) |
- Rückgabe:
- string Processed string. private
| t3lib_diff::explodeStringIntoWords |
( |
$ |
str |
) |
|
Explodes the input string into words. This is done by splitting first by lines, then by space char. Each word will be in stored as a value in an array. Lines will be indicated by two subsequent empty values.
- Parameter:
-
- Rückgabe:
- array Array with words. private
| t3lib_diff::getDiff |
( |
$ |
str1, |
|
|
$ |
str2 | |
|
) |
| | |
Produce a diff (using the "diff" application) between two strings The function will write the two input strings to temporary files, then execute the diff program, delete the temp files and return the result.
- Parameter:
-
| string | String 1 |
| string | String 2 |
- Rückgabe:
- array The result from the exec() function call. private
| t3lib_diff::makeDiffDisplay |
( |
$ |
str1, |
|
|
$ |
str2, |
|
|
$ |
wrapTag = 'span' | |
|
) |
| | |
This will produce a color-marked-up diff output in HTML from the input strings.
- Parameter:
-
| string | String 1 |
| string | String 2 |
| string | Setting the wrapping tag name |
- Rückgabe:
- string Formatted output.
| t3lib_diff::tagSpace |
( |
$ |
str, |
|
|
$ |
rev = 0 | |
|
) |
| | |
Adds a space character before and after HTML tags (more precisely any found < or >)
- Parameter:
-
| string | String to process |
| boolean | If set, the < > searched for will be < and > |
- Rückgabe:
- string Processed string private
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
- /srv/www/vhosts/typo3.local/typo3_src-4.2.10/t3lib/class.t3lib_diff.php