PHP Класс Pagekit\Intl\IntlModule

Наследование: extends Pagekit\Module\Module
Показать файл Открыть проект

Открытые методы

Метод Описание
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