UNA
Loading...
Searching...
No Matches
BxDolLanguages Class Reference
Inheritance diagram for BxDolLanguages:
BxDolFactory iBxDolSingleton

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
 

Constructor & Destructor Documentation

◆ __construct()

BxDolLanguages::__construct ( )
protected

Reimplemented from BxDolFactory.

Member Function Documentation

◆ __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 ( )

Get current language.

◆ getInstance()

static BxDolLanguages::getInstance ( )
static

Get singleton instance of the class

Implements iBxDolSingleton.

◆ init()

BxDolLanguages::init ( )
protected

Trying to initialize default language.


The documentation for this class was generated from the following file: