XarayaTranslationMemory
1.6
|
Go to the source code of this file.
Functions | |
fixstr ($text) | |
FixQuot ($text) | |
& | GetDbConn () |
& | GetTables () |
GetConfigVar ($varName) | |
CacheIndexes () | |
GetMicroTime () | |
ShowMicroTime ($basetime, $comment="") | |
CacheIndexes | ( | ) |
Load the word and sentence indexes and available locales into the related static class variables using the related static class methods.
Definition at line 94 of file Common.php.
References TranslationProject\InitLocaleIDCache(), TranslationString\InitSentenceLengthCache(), and TranslationWordList\InitWordsCache().
FixQuot | ( | $text | ) |
Fix string for using in HTML input controls
$text | The text to escape. |
Definition at line 49 of file Common.php.
fixstr | ( | $text | ) |
Fix string for using in SQL statement
$text | The text to escape. |
Definition at line 36 of file Common.php.
Referenced by TranslationWordList\AddToWordIndex(), and TranslationString\FindText().
GetConfigVar | ( | $varName | ) |
Return a variable value from the global $CONFIG array.
Definition at line 84 of file Common.php.
References $CONFIG.
Referenced by TranslationBackend\__construct(), TranslationExportXaraya\Export(), and TranslationImportXaraya\Import().
& GetDbConn | ( | ) |
Return a reference to the global database connection.
Definition at line 61 of file Common.php.
References $DB.
Referenced by StringIterator\__construct(), TranslationWordList\__construct(), ProjectIterator\__construct(), TranslationString\__construct(), TranslationBackend\__construct(), TranslationProject\CheckNameCollision(), TranslationString\DestroyData(), TranslationProject\DestroyData(), TranslationString\FindSentenceIndex(), TranslationString\FindSimilar(), TranslationString\FindText(), TranslationProject\GetRoots(), TranslationProject\InitLocaleIDCache(), TranslationString\InitSentenceLengthCache(), TranslationWordList\InitWordsCache(), TranslationString\InitWordSentencesCache(), TranslationProject\Load(), TranslationProject\LoadByID(), TranslationProject\Save(), TranslationString\Save(), and TranslationString\StoreSentenceIndex().
GetMicroTime | ( | ) |
Return current microtime timestamp for use in performance debug with ShowMicroTime()
Definition at line 107 of file Common.php.
Referenced by ShowMicroTime().
& GetTables | ( | ) |
Return a reference to the short, interoperability table naming array.
Definition at line 71 of file Common.php.
Referenced by StringIterator\__construct(), TranslationWordList\__construct(), ProjectIterator\__construct(), TranslationString\__construct(), TranslationBackend\__construct(), TranslationProject\CheckNameCollision(), TranslationString\DestroyData(), TranslationProject\DestroyData(), TranslationString\FindSentenceIndex(), TranslationString\FindSimilar(), TranslationString\FindText(), TranslationProject\GetRoots(), TranslationProject\InitLocaleIDCache(), TranslationString\InitSentenceLengthCache(), TranslationWordList\InitWordsCache(), TranslationString\InitWordSentencesCache(), TranslationProject\Load(), TranslationProject\LoadByID(), TranslationProject\Save(), TranslationString\Save(), and TranslationString\StoreSentenceIndex().
ShowMicroTime | ( | $basetime, | |
$comment = "" |
|||
) |
Show time passed since basetime in microseconds unit.
Float | $basetime | Time received from GetMicroTime earlier. |
String | $comment | Comment to display before number. |
Definition at line 119 of file Common.php.
References GetMicroTime().