PHP 클래스 Neos\Flow\I18n\Configuration

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$currentLocale Locale
$defaultLocale Locale
$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 ( ) : Locale 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 ( ) : Locale Returns the default locale of this configuration.
getFallbackRule ( ) : array Returns the current fallback rule.
setCurrentLocale ( Locale $locale ) : void 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.

메소드 상세

__construct() 공개 메소드

Constructs a new configuration object with the given locale identifier to be used as the default locale of this configuration.
public __construct ( string $defaultLocaleIdentifier )
$defaultLocaleIdentifier string

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".
public getCurrentLocale ( ) : Locale
리턴 Locale

getDefaultLocale() 공개 메소드

Returns the default locale of this configuration.
public getDefaultLocale ( ) : Locale
리턴 Locale

getFallbackRule() 공개 메소드

Returns the current fallback rule.
또한 보기: setFallbackRule()
public getFallbackRule ( ) : array
리턴 array

setCurrentLocale() 공개 메소드

Sets the current locale of this configuration.
public setCurrentLocale ( Locale $locale ) : void
$locale Locale
리턴 void

setFallbackRule() 공개 메소드

If this is given an order of [dk, za, fr_CA] a request for en_UK will be looked up in en_UK, en, dk, za, fr_CA, fr before trying the default locale. If strict flag is given in the array, the above example would instead look in en_UK, dk, za, fr_CA before trying the default locale. In other words, the implicit fallback is not applied to the locales in the fallback rule. Here is an example: array('strict' => FALSE, 'order' => array('dk', 'za'))
public setFallbackRule ( array $fallbackRule )
$fallbackRule array

프로퍼티 상세

$currentLocale 보호되어 있는 프로퍼티

protected Locale,Neos\Flow\I18n $currentLocale
리턴 Locale

$defaultLocale 보호되어 있는 프로퍼티

protected Locale,Neos\Flow\I18n $defaultLocale
리턴 Locale

$fallbackRule 보호되어 있는 프로퍼티

protected array $fallbackRule
리턴 array