◆ __clone()
BxDolLanguages::__clone |
( |
| ) |
|
Prevent cloning the instance
◆ detectLanguageFromArray()
BxDolLanguages::detectLanguageFromArray |
( |
|
$aLangs, |
|
|
|
$sFallbackLanguage = 'en' , |
|
|
|
$bLowercase = false |
|
) |
| |
It tries to match current language with provided languages array, if nothing is found $sFallbackLanguage is returned.
- Parameters
-
$aLangs | - array of languages, example: array('ru' => 1, 'kg' => 1); |
$sFallbackLanguage | - language to return of nothis is found |
- Returns
- language code string
◆ getCurrentLanguage()
BxDolLanguages::getCurrentLanguage |
( |
| ) |
|
◆ getInstance()
static BxDolLanguages::getInstance |
( |
| ) |
|
|
static |
◆ init()
Trying to initialize default language.
The documentation for this class was generated from the following file:
- inc/classes/BxDolLanguages.php