Property | Type | Description | |
---|---|---|---|
$Language | Protected fields for this class | ||
$LocaleDetector | Protected fields for this class |
Method | Description | |
---|---|---|
__construct ( |
Create a new Language Detector | |
current ( ) : Language | Get the current language for the locale this will probably use the cookie as default | |
primaryLanguageId ( ) : integer | Returns the primary language id for this system | |
universal ( ) : Language | Get the universal language that we fallback to. | |
update ( Language $language ) : void | Update the current language for this browser |
public __construct ( |
||
$LocaleDetector | ||
$Language | DvsLanguage |
public current ( ) : Language | ||
return | Language |
public primaryLanguageId ( ) : integer | ||
return | integer |
public universal ( ) : Language | ||
return | Language |