Свойство | Тип | Описание | |
---|---|---|---|
$currentLocale | |||
$defaultLocale | |||
$fallbackRule | array |
Метод | Описание | |
---|---|---|
__construct ( string $defaultLocaleIdentifier ) | Constructs a new configuration object with the given locale identifier to be used as the default locale of this configuration. | |
getCurrentLocale ( ) : |
Returns the current locale. This is the default locale if no current locale has been set or the set current locale has a language code of "mul". | |
getDefaultLocale ( ) : |
Returns the default locale of this configuration. | |
getFallbackRule ( ) : array | Returns the current fallback rule. | |
setCurrentLocale ( |
Sets the current locale of this configuration. | |
setFallbackRule ( array $fallbackRule ) | Allows to set a fallback order for locale resolving. If not set, the implicit inheritance of locales will be used. That is, if a locale of en_UK is requested, matches will be searched for in en_UK and en before trying the default locale configured in Flow. |
public __construct ( string $defaultLocaleIdentifier ) | ||
$defaultLocaleIdentifier | string |
public getCurrentLocale ( ) : |
||
Результат |
public getDefaultLocale ( ) : |
||
Результат |
public getFallbackRule ( ) : array | ||
Результат | array |
public setCurrentLocale ( |
||
$locale | ||
Результат | void |
public setFallbackRule ( array $fallbackRule ) | ||
$fallbackRule | array |