PHP 클래스 Neos\Flow\I18n\Locale

Objects of this kind conveniently represent locales usually described by locale identifiers such as de_DE, en_Latin_US etc. The locale identifiers used are defined in the Unicode Technical Standard #35 (Unicode Locale Data Markup Language). Using this class asserts the validity of the used locale and provides you with some useful methods for getting more information about it. Please note that this class represents locale identifier with valid syntax, but it does not assures that represented locale is available (installed) in current Flow installation. In order to check that, various methods of \Neos\Flow\I18n\Service class can be used.
또한 보기: http://www.unicode.org/reports/tr35/
또한 보기: Neos\Flow\I18n\Service
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$language string The language identifier - a BCP47, ISO 639-3 or 639-5 code Like the standard says, we use "mul" to label multilanguage content
$region string The region identifier - an ISO 3166-1-alpha-2 code or a UN M.49 three digit code Note: We use "ZZ" for "unknown region" or "global"
$script string The script identifier - an ISO 15924 code according to BCP47
$variant string The optional variant identifier - one of the registered registered variants according to BCP47

공개 메소드들

메소드 설명
__construct ( string $localeIdentifier ) Constructs this locale object
__toString ( ) : string Returns the string identifier of this locale
getLanguage ( ) : string Returns the language defined in this locale
getRegion ( ) : string Returns the region defined in this locale
getScript ( ) : string Returns the script defined in this locale
getVariant ( ) : string Returns the variant defined in this locale

메소드 상세

__construct() 공개 메소드

Constructs this locale object
public __construct ( string $localeIdentifier )
$localeIdentifier string A valid locale identifier according to UTS#35

__toString() 공개 메소드

Returns the string identifier of this locale
public __toString ( ) : string
리턴 string The locale identifier (tag)

getLanguage() 공개 메소드

Returns the language defined in this locale
public getLanguage ( ) : string
리턴 string The language identifier

getRegion() 공개 메소드

Returns the region defined in this locale
public getRegion ( ) : string
리턴 string The region identifier

getScript() 공개 메소드

Returns the script defined in this locale
public getScript ( ) : string
리턴 string The script identifier

getVariant() 공개 메소드

Returns the variant defined in this locale
public getVariant ( ) : string
리턴 string The variant identifier

프로퍼티 상세

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

The language identifier - a BCP47, ISO 639-3 or 639-5 code Like the standard says, we use "mul" to label multilanguage content
또한 보기: http://rfc.net/bcp47.html
또한 보기: http://en.wikipedia.org/wiki/ISO_639
protected string $language
리턴 string

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

The region identifier - an ISO 3166-1-alpha-2 code or a UN M.49 three digit code Note: We use "ZZ" for "unknown region" or "global"
또한 보기: http://www.iso.org/iso/country_codes/iso_3166_code_lists.htm
또한 보기: http://en.wikipedia.org/wiki/UN_M.49
protected string $region
리턴 string

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

The script identifier - an ISO 15924 code according to BCP47
또한 보기: http://rfc.net/bcp47.html
또한 보기: http://unicode.org/iso15924/iso15924-codes.html
protected string $script
리턴 string

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

The optional variant identifier - one of the registered registered variants according to BCP47
또한 보기: http://rfc.net/bcp47.html
protected string $variant
리턴 string