Go to the source code of this file.
Functions | |
fixstr ($text) | |
FixQuot ($text) | |
& | GetDbConn () |
& | GetTables () |
GetConfigVar ($varName) | |
CacheIndexes () |
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 96 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 51 of file Common.php.
fixstr | ( | $ | text | ) |
Fix string for using in SQL statement
$text | The text to escape. |
Definition at line 38 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 86 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 63 of file Common.php.
References $DB.
Referenced by TranslationBackend::__construct(), TranslationWordList::__construct(), TranslationString::__construct(), StringIterator::__construct(), ProjectIterator::__construct(), TranslationString::DestroyData(), TranslationProject::DestroyData(), TranslationString::FindSentenceIndex(), TranslationString::FindSimilar(), TranslationString::FindText(), TranslationProject::InitLocaleIDCache(), TranslationString::InitSentenceLengthCache(), TranslationWordList::InitWordsCache(), TranslationString::InitWordSentencesCache(), TranslationProject::Load(), TranslationProject::LoadByID(), TranslationProject::NameCollision(), TranslationString::Save(), TranslationProject::Save(), and TranslationString::StoreSentenceIndex().
& GetTables | ( | ) |
Return a reference to the short, interoperability table naming array.
Definition at line 73 of file Common.php.
Referenced by TranslationBackend::__construct(), TranslationWordList::__construct(), TranslationString::__construct(), StringIterator::__construct(), ProjectIterator::__construct(), TranslationString::DestroyData(), TranslationProject::DestroyData(), TranslationString::FindSentenceIndex(), TranslationString::FindSimilar(), TranslationString::FindText(), TranslationProject::InitLocaleIDCache(), TranslationString::InitSentenceLengthCache(), TranslationWordList::InitWordsCache(), TranslationString::InitWordSentencesCache(), TranslationProject::Load(), TranslationProject::LoadByID(), TranslationProject::NameCollision(), TranslationString::Save(), TranslationProject::Save(), and TranslationString::StoreSentenceIndex().