PHP 클래스 Pagekit\Intl\IntlModule

상속: extends Pagekit\Module\Module
파일 보기 프로젝트 열기: pagekit/pagekit

공개 메소드들

메소드 설명
getAvailableLanguages ( ) : array Gets the system's available languages.
getContinents ( string $locale = null ) : array Gets the continents list.
getCountries ( string $locale = null ) : array Gets the countries list.
getFormats ( string $locale = null ) : array | null Gets the locales formats data.
getLanguages ( string $locale = null ) : array | null Gets the languages list.
getLocale ( ) : string Gets the current locale id.
getLocaleTag ( ) : string Gets the current locale tag.
getSubContinents ( string $locale = null ) : array Gets the subcontinents list.
getTerritories ( string $locale = null ) : array | null Gets the territories list.
loadLocale ( string $locale, Symfony\Component\Translation\TranslatorInterface $translator = null ) Loads language files.
main ( Pagekit\Application $app )
setLocale ( string $locale ) Sets the current locale id.

보호된 메소드들

메소드 설명
getData ( string $name, string | null $locale = null ) : array | null
getGeneric ( string $name ) : array | null
getTerritoryContainment ( $level = 1, $locale = null )
parse ( string $file ) : array | null

메소드 상세

getAvailableLanguages() 공개 메소드

Gets the system's available languages.
public getAvailableLanguages ( ) : array
리턴 array

getContinents() 공개 메소드

Gets the continents list.
public getContinents ( string $locale = null ) : array
$locale string
리턴 array

getCountries() 공개 메소드

Gets the countries list.
public getCountries ( string $locale = null ) : array
$locale string
리턴 array

getData() 보호된 메소드

protected getData ( string $name, string | null $locale = null ) : array | null
$name string
$locale string | null
리턴 array | null

getFormats() 공개 메소드

Gets the locales formats data.
public getFormats ( string $locale = null ) : array | null
$locale string
리턴 array | null

getGeneric() 보호된 메소드

protected getGeneric ( string $name ) : array | null
$name string
리턴 array | null

getLanguages() 공개 메소드

Gets the languages list.
public getLanguages ( string $locale = null ) : array | null
$locale string
리턴 array | null

getLocale() 공개 메소드

Gets the current locale id.
public getLocale ( ) : string
리턴 string

getLocaleTag() 공개 메소드

Gets the current locale tag.
public getLocaleTag ( ) : string
리턴 string

getSubContinents() 공개 메소드

Gets the subcontinents list.
public getSubContinents ( string $locale = null ) : array
$locale string
리턴 array

getTerritories() 공개 메소드

Gets the territories list.
public getTerritories ( string $locale = null ) : array | null
$locale string
리턴 array | null

getTerritoryContainment() 보호된 메소드

protected getTerritoryContainment ( $level = 1, $locale = null )

loadLocale() 공개 메소드

Loads language files.
public loadLocale ( string $locale, Symfony\Component\Translation\TranslatorInterface $translator = null )
$locale string
$translator Symfony\Component\Translation\TranslatorInterface

main() 공개 메소드

public main ( Pagekit\Application $app )
$app Pagekit\Application

parse() 보호된 메소드

protected parse ( string $file ) : array | null
$file string
리턴 array | null

setLocale() 공개 메소드

Sets the current locale id.
public setLocale ( string $locale )
$locale string