Documentation TYPO3 par Ameos

t3lib_diff Class Reference

List of all members.

Public Member Functions

 makeDiffDisplay ($str1, $str2)
 getDiff ($str1, $str2)
 addClearBuffer ($clearBuffer, $last=0)
 explodeStringIntoWords ($str)
 tagSpace ($str, $rev=0)
 makeDiffDisplay ($str1, $str2)
 getDiff ($str1, $str2)
 addClearBuffer ($clearBuffer, $last=0)
 explodeStringIntoWords ($str)
 tagSpace ($str, $rev=0)

Public Attributes

 $stripTags = 0
 $diffOptions = ''
 $clearBufferIdx = 0

Detailed Description

Definition at line 67 of file class.t3lib_diff.php.


Member Function Documentation

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

Parameters:
string The input string.
boolean If set, it indicates that the string should just end with ... (thus no "complete" ending)
Returns:
string Processed string. private

Definition at line 187 of file class.t3lib_diff.php.

References t3lib_div::fixed_lgd_cs().

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

Parameters:
string The input string.
boolean If set, it indicates that the string should just end with ... (thus no "complete" ending)
Returns:
string Processed string. private

Definition at line 187 of file class.t3lib_diff.php.

References t3lib_div::fixed_lgd_cs().

Referenced by makeDiffDisplay().

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.

Parameters:
string The string input
Returns:
array Array with words. private

Definition at line 203 of file class.t3lib_diff.php.

References t3lib_div::trimExplode().

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.

Parameters:
string The string input
Returns:
array Array with words. private

Definition at line 203 of file class.t3lib_diff.php.

References t3lib_div::trimExplode().

Referenced by makeDiffDisplay().

t3lib_diff::getDiff str1,
str2
 

Produce a diff (with the "diff" application on unix) 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.

Parameters:
string String 1
string String 2
Returns:
array The result from the exec() function call. private

Definition at line 160 of file class.t3lib_diff.php.

References t3lib_div::tempnam(), and t3lib_div::writeFile().

t3lib_diff::getDiff str1,
str2
 

Produce a diff (with the "diff" application on unix) 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.

Parameters:
string String 1
string String 2
Returns:
array The result from the exec() function call. private

Definition at line 160 of file class.t3lib_diff.php.

References t3lib_div::tempnam(), and t3lib_div::writeFile().

Referenced by makeDiffDisplay().

t3lib_diff::makeDiffDisplay str1,
str2
 

This will produce a color-marked-up diff output in HTML from the input strings.

Parameters:
string String 1
string String 2
Returns:
string Formatted output.

Definition at line 86 of file class.t3lib_diff.php.

References addClearBuffer(), explodeStringIntoWords(), getDiff(), and tagSpace().

t3lib_diff::makeDiffDisplay str1,
str2
 

This will produce a color-marked-up diff output in HTML from the input strings.

Parameters:
string String 1
string String 2
Returns:
string Formatted output.

Definition at line 86 of file class.t3lib_diff.php.

References addClearBuffer(), explodeStringIntoWords(), getDiff(), and tagSpace().

t3lib_diff::tagSpace str,
rev = 0
 

Adds a space character before and after HTML tags (more precisely any found < or >)

Parameters:
string String to process
boolean If set, the < > searched for will be < and >
Returns:
string Processed string private

Definition at line 224 of file class.t3lib_diff.php.

t3lib_diff::tagSpace str,
rev = 0
 

Adds a space character before and after HTML tags (more precisely any found < or >)

Parameters:
string String to process
boolean If set, the < > searched for will be < and >
Returns:
string Processed string private

Definition at line 224 of file class.t3lib_diff.php.

Referenced by makeDiffDisplay().


The documentation for this class was generated from the following files:


Généré par Les spécialistes TYPO3 avec  doxygen 1.4.6