Methods summary
Modifier and Type | Method |
---|---|
public | __construct ( string n2nLocaleId ) |
public string | getId ( ) |
public string | getName ( string displayN2nLocale = null ) |
public string | getLanguageId ( ) |
public Language | getLanguage ( ) |
public string | getRegionId ( ) |
public Region | getRegion ( ) |
public boolean | equals ( string o ) |
public string | toWebId ( bool ignoreAliases = false ) |
public string | toHttpId ( ) |
public string | toPrettyId ( ) |
public string | urlify ( ) |
public string | __toString ( ) |
public static string | parseHttpN2nLocaleId ( string httpN2nLocaleShort ) |
public static string | parseWebId ( string webId , bool ignoreAliases = false ) |
public static | acceptFromHttp ( unknown httpAcceptLanguage ) |
public static | setDefault ( N2nLocale defaultN2nLocale ) |
public static | getDefault ( ) |
public static | setFallback ( N2nLocale fallbackN2nLocale ) |
public static | getFallback ( ) |
public static | getAdmin ( ) |
public static | setAdmin ( N2nLocale adminN2nLocale ) |
public static N2nLocale [] | getWebAliases ( ) |
public static | setWebAliases ( N2nLocale webAliases ) |
public static bool | containsWebAlias ( string webAlias ) |
public static string | getWebAliasForN2nLocale ( N2nLocale n2nLocale ) |
public static N2nLocale | create ( mixed expression ) |
public static N2nLocale|null | build ( mixed expression ) |
public static N2nLocale | fromWebId ( string webId , bool ignoreAliases = false , bool lenient = false ) |
Methods in detail
-
__construct
public __construct ( string n2nLocaleId ) -
getId
string public getId ( )return
string -
getName
string public getName ( string displayN2nLocale = null )param
string displayN2nLocalereturn
string -
getLanguageId
string public getLanguageId ( )return
string -
getLanguage
Language public getLanguage ( )return
-
getRegionId
string public getRegionId ( )return
string -
getRegion
Region public getRegion ( )return
-
equals
boolean public equals ( string o )param
string oreturn
boolean -
toWebId
string public toWebId ( bool ignoreAliases = false )ISO 639-1 - ISO 3166-1 Alpha 2param
bool ignoreAliasesreturn
string -
toHttpId
string public toHttpId ( )deprecated
deprecatedreturn
string -
toPrettyId
string public toPrettyId ( )return
string -
urlify
string public urlify ( )Specified: UrlableElementOverrides: UrlableElement::urlify() -
__toString
string public __toString ( )return
string -
parseHttpN2nLocaleId
string public static parseHttpN2nLocaleId ( string httpN2nLocaleShort )param
string httpN2nLocaleShortreturn
stringthrows
deprecated
deprecated -
parseWebId
string public static parseWebId ( string webId , bool ignoreAliases = false ) -
acceptFromHttp
public static acceptFromHttp ( unknown httpAcceptLanguage ) -
setDefault
-
getDefault
public static getDefault ( ) -
setFallback
-
getFallback
public static getFallback ( ) -
getAdmin
public static getAdmin ( ) -
setAdmin
-
getWebAliases
return
-
setWebAliases
param
-
containsWebAlias
bool public static containsWebAlias ( string webAlias )param
string webAliasreturn
bool -
getWebAliasForN2nLocale
-
create
-
build
N2nLocale|null public static build ( mixed expression )param
mixed expressionreturn
n2n\l10n\N2nLocale|null -
fromWebId
N2nLocale public static fromWebId ( string webId , bool ignoreAliases = false , bool lenient = false )param
string webIdbool ignoreAliasesbool lenientthrows
return
param
throws