|
UNA
|
Public Member Functions | |
| __clone () | |
| getCurrentLangName ($bSetCookie=true) | |
| getCurrentLangId () | |
| getLangId ($sLang) | |
| getLangName ($iLangId) | |
| getLangTitle ($iLangId) | |
| getLangFlag ($sLang='') | |
| getLangDirection ($sLang='') | |
| getLangCountryCode ($sLang='') | |
| getDefaultLangName () | |
| getLanguages ($bIdAsKey=false, $bActiveOnly=false) | |
| getLanguagesExt ($bIdAsKey=false, $bActiveOnly=false) | |
| getLanguageCategory ($sName) | |
| detectLanguageFromArray ($aLangs, $sFallbackLanguage='en', $bLowercase=false) | |
| getCurrentLanguage () | |
| _t () | |
| _t_err () | |
| _t_action () | |
| _t_ext ($key, $args) | |
| _t_format_size ($iSize) | |
| _t_format_duration ($iTime) | |
| _t_format_currency ($fPrice, $iPrecision=2, $bFormatThousands=true, $sSign='') | |
| _t_format_extensions ($mixedExtensions) | |
Static Public Member Functions | |
| static | getInstance () |
Protected Member Functions | |
| init () | |
| tryToGetLang ($sLangs, $bSetCookie=false) | |
| checkLangExists ( $sLang) | |
| setLangCookie ( $sLang) | |
Protected Attributes | |
| $oDb | |
| $sCurrentLanguage | |
|
protected |
Reimplemented from BxDolFactory.
| BxDolLanguages::__clone | ( | ) |
Prevent cloning the instance
| BxDolLanguages::detectLanguageFromArray | ( | $aLangs, | |
| $sFallbackLanguage = 'en', | |||
| $bLowercase = false ) |
It tries to match current language with provided languages array, if nothing is found $sFallbackLanguage is returned.
| $aLangs | - array of languages, example: array('ru' => 1, 'kg' => 1); |
| $sFallbackLanguage | - language to return of nothis is found |
| BxDolLanguages::getCurrentLanguage | ( | ) |
Get current language.
|
static |
Get singleton instance of the class
Implements iBxDolSingleton.
|
protected |
Trying to initialize default language.