Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

TranslationString::FindSimilar FindText = "",
localeID = 0,
FilterPercent = 60
 

Public function to find existing sentences in the string database

Finds similar sentences and returns them in an array ordered by match percentage descending. Return format: array[stringID]["string"][] = array, TranslationString objects with all matches array[stringID]["percent"] = integer, match percentage If parameters are omitted, the current string object's text and localeID will be used. If parameters are specified, the current string is changed to those.

Parameters:
$FindText The sentence or text to find, if emtpy, uses this object's Original string.
$localeID Find strings only in this locale.
$FilterPercent Drop results below this match percentage, defaults to 60.
Returns:
Array of matches of ID,Percent subarrays of TranslationStrings, ordered descending by Percent.

Definition at line 398 of file TranslationString.php.

References $DB, FindSentenceIndex(), GetDbConn(), and GetTables().


Generated on Sat Apr 22 16:49:54 2006 for XarayaTranslationMemory by  doxygen 1.4.4