BitLanguage Class Reference

Inheritance diagram for BitLanguage:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 BitLanguage ()
 clearCache ()
 expungeLanguage ($pLangCode)
 expungeMasterString ($pSourceHash)
 getImportedLanguages ()
 getLanguage ()
 getLanguageFile ($pLangCode)
 getSourceHash ($pString)
 getTranslatedStrings ($pSourceHash)
 getTranslationString ($pSourceHash, $pLangCode)
 importMasterStrings ($pOverwrite=FALSE)
 importTranslationStrings ($pLangCode, $pOverwrite=FALSE, $pTable='i18n_strings`', $pFile=FALSE)
 isImportFileAvailable ($pLangCode)
 listLanguages ($pListDisabled=TRUE, $pListOnlyImportable=FALSE)
 loadLanguage ($pLangCode)
 loadMasterStrings ($pSourceHash=NULL)
 lookupTranslation ($pString, $pLangCode, $pOverrideUsage=TRUE)
 masterStringExists ($pSourceHash)
 searchMasterStrings ($pQuerySource)
 setLanguage ($pLangCode)
 storeLanguage ($pParamHash)
 storeMasterString ($pParamHash)
 storeTranslationString ($pLangCode, $pString, $pSourceHash)
 translate ($pString)
 verifyLanguage (&$pParamHash)
 verifyMastersLoaded ()
 verifyTranslationLoaded ($pLangCode)

Public Attributes

 $mLanguage
 $mLanguageList

Detailed Description

Definition at line 16 of file BitLanguage.php.


Member Function Documentation

BitLanguage::BitLanguage (  ) 

Definition at line 22 of file BitLanguage.php.

References $_SERVER, $_SESSION, $gBitSystem, BitBase::BitBase(), listLanguages(), mLanguage, and setLanguage().

Here is the call graph for this function:

BitLanguage::clearCache (  ) 

Definition at line 447 of file BitLanguage.php.

References unlink_r().

Here is the call graph for this function:

BitLanguage::expungeLanguage ( pLangCode  ) 

Definition at line 91 of file BitLanguage.php.

References $query, $result, and mDb.

BitLanguage::expungeMasterString ( pSourceHash  ) 

Definition at line 102 of file BitLanguage.php.

References $query, $result, and mDb.

BitLanguage::getImportedLanguages (  ) 

Definition at line 114 of file BitLanguage.php.

References $res, $ret, $rs, listLanguages(), and mDb.

Here is the call graph for this function:

BitLanguage::getLanguage (  ) 

Definition at line 54 of file BitLanguage.php.

References mLanguage.

BitLanguage::getLanguageFile ( pLangCode  ) 

Definition at line 282 of file BitLanguage.php.

References language.

Referenced by importTranslationStrings(), and isImportFileAvailable().

BitLanguage::getSourceHash ( pString  ) 

Definition at line 443 of file BitLanguage.php.

Referenced by importMasterStrings(), importTranslationStrings(), lookupTranslation(), storeMasterString(), and translate().

BitLanguage::getTranslatedStrings ( pSourceHash  ) 

Definition at line 264 of file BitLanguage.php.

References $query, and mDb.

BitLanguage::getTranslationString ( pSourceHash,
pLangCode 
)

Definition at line 272 of file BitLanguage.php.

References $query, mDb, and verifyTranslationLoaded().

Here is the call graph for this function:

BitLanguage::importMasterStrings ( pOverwrite = FALSE  ) 

Definition at line 227 of file BitLanguage.php.

References $count, $query, getSourceHash(), mDb, and storeMasterString().

Referenced by verifyMastersLoaded().

Here is the call graph for this function:

BitLanguage::importTranslationStrings ( pLangCode,
pOverwrite = FALSE,
pTable = 'i18n_strings`',
pFile = FALSE 
)

Definition at line 290 of file BitLanguage.php.

References $count, $query, FALSE, getLanguageFile(), getSourceHash(), isImportFileAvailable(), loadMasterStrings(), lookupTranslation(), masterStringExists(), mDb, source, and storeMasterString().

Referenced by verifyTranslationLoaded().

Here is the call graph for this function:

BitLanguage::isImportFileAvailable ( pLangCode  ) 

Definition at line 286 of file BitLanguage.php.

References getLanguageFile().

Referenced by importTranslationStrings(), and listLanguages().

Here is the call graph for this function:

BitLanguage::listLanguages ( pListDisabled = TRUE,
pListOnlyImportable = FALSE 
)

Definition at line 130 of file BitLanguage.php.

References $ret, isImportFileAvailable(), mDb, and translate().

Referenced by BitLanguage(), getImportedLanguages(), and verifyLanguage().

Here is the call graph for this function:

BitLanguage::loadLanguage ( pLangCode  ) 

Definition at line 356 of file BitLanguage.php.

References $query, mDb, verifyMastersLoaded(), and verifyTranslationLoaded().

Here is the call graph for this function:

BitLanguage::loadMasterStrings ( pSourceHash = NULL  ) 

Definition at line 170 of file BitLanguage.php.

References $query, mDb, and verifyMastersLoaded().

Referenced by importTranslationStrings().

Here is the call graph for this function:

BitLanguage::lookupTranslation ( pString,
pLangCode,
pOverrideUsage = TRUE 
)

Definition at line 416 of file BitLanguage.php.

References $gBitSystem, $query, $ret, getSourceHash(), mDb, and storeMasterString().

Referenced by importTranslationStrings(), and translate().

Here is the call graph for this function:

BitLanguage::masterStringExists ( pSourceHash  ) 

Definition at line 159 of file BitLanguage.php.

Referenced by importTranslationStrings(), and storeMasterString().

BitLanguage::searchMasterStrings ( pQuerySource  ) 

Definition at line 163 of file BitLanguage.php.

References $query, and mDb.

BitLanguage::setLanguage ( pLangCode  ) 

Definition at line 58 of file BitLanguage.php.

References mLanguage.

Referenced by BitLanguage().

BitLanguage::storeLanguage ( pParamHash  ) 

Definition at line 78 of file BitLanguage.php.

References $pParamHash, $query, $result, mDb, and verifyLanguage().

Here is the call graph for this function:

BitLanguage::storeMasterString ( pParamHash  ) 

Definition at line 185 of file BitLanguage.php.

References $gBitSmarty, $pParamHash, $query, $type, getSourceHash(), masterStringExists(), mDb, and source.

Referenced by importMasterStrings(), importTranslationStrings(), and lookupTranslation().

Here is the call graph for this function:

BitLanguage::storeTranslationString ( pLangCode,
pString,
pSourceHash 
)

Definition at line 250 of file BitLanguage.php.

References $query, $result, and mDb.

BitLanguage::translate ( pString  ) 

Definition at line 367 of file BitLanguage.php.

References $cacheFile, $fp, $gBitSystem, $ret, getSourceHash(), lookupTranslation(), mLanguage, and verifyTranslationLoaded().

Referenced by listLanguages().

Here is the call graph for this function:

BitLanguage::verifyLanguage ( &$  pParamHash  ) 

Definition at line 62 of file BitLanguage.php.

References $pParamHash, language, listLanguages(), and tra().

Referenced by storeLanguage().

Here is the call graph for this function:

BitLanguage::verifyMastersLoaded (  ) 

Definition at line 150 of file BitLanguage.php.

References $count, $query, importMasterStrings(), and mDb.

Referenced by loadLanguage(), and loadMasterStrings().

Here is the call graph for this function:

BitLanguage::verifyTranslationLoaded ( pLangCode  ) 

Definition at line 345 of file BitLanguage.php.

References $count, $query, importTranslationStrings(), and mDb.

Referenced by getTranslationString(), loadLanguage(), and translate().

Here is the call graph for this function:


Member Data Documentation

BitLanguage::$mLanguage

Definition at line 20 of file BitLanguage.php.

BitLanguage::$mLanguageList

Definition at line 18 of file BitLanguage.php.


The documentation for this class was generated from the following file:
Generated on Wed Aug 22 19:34:16 2007 for bitweaver by  doxygen 1.5.2