PHP 인터페이스 eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverterInterface

eZ Publish uses - locale format (mostly, some supported locales being out of this format, e.g. cro-HR). Symfony uses the standard POSIX locale format (_), which is supported by Intl PHP extension. Locale converters are meant to convert in those 2 formats back and forth.
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 0 사용 예제들

공개 메소드들

메소드 설명
convertToEz ( string $posixLocale ) : string | null Converts a locale in POSIX format to eZ Publish internal format.
convertToPOSIX ( string $ezpLocale ) : string | null Converts a locale in eZ Publish internal format to POSIX format.

메소드 상세

convertToEz() 공개 메소드

Returns null if conversion cannot be made.
public convertToEz ( string $posixLocale ) : string | null
$posixLocale string
리턴 string | null

convertToPOSIX() 공개 메소드

Returns null if conversion cannot be made.
public convertToPOSIX ( string $ezpLocale ) : string | null
$ezpLocale string
리턴 string | null