PHP Class Pagekit\Intl\IntlModule

Inheritance: extends Pagekit\Module\Module
Afficher le fichier Open project: pagekit/pagekit

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
getData ( string $name, string | null $locale = null ) : array | null
getGeneric ( string $name ) : array | null
getTerritoryContainment ( $level = 1, $locale = null )
parse ( string $file ) : array | null

Method Details

getAvailableLanguages() public méthode

Gets the system's available languages.
public getAvailableLanguages ( ) : array
Résultat array

getContinents() public méthode

Gets the continents list.
public getContinents ( string $locale = null ) : array
$locale string
Résultat array

getCountries() public méthode

Gets the countries list.
public getCountries ( string $locale = null ) : array
$locale string
Résultat array

getData() protected méthode

protected getData ( string $name, string | null $locale = null ) : array | null
$name string
$locale string | null
Résultat array | null

getFormats() public méthode

Gets the locales formats data.
public getFormats ( string $locale = null ) : array | null
$locale string
Résultat array | null

getGeneric() protected méthode

protected getGeneric ( string $name ) : array | null
$name string
Résultat array | null

getLanguages() public méthode

Gets the languages list.
public getLanguages ( string $locale = null ) : array | null
$locale string
Résultat array | null

getLocale() public méthode

Gets the current locale id.
public getLocale ( ) : string
Résultat string

getLocaleTag() public méthode

Gets the current locale tag.
public getLocaleTag ( ) : string
Résultat string

getSubContinents() public méthode

Gets the subcontinents list.
public getSubContinents ( string $locale = null ) : array
$locale string
Résultat array

getTerritories() public méthode

Gets the territories list.
public getTerritories ( string $locale = null ) : array | null
$locale string
Résultat array | null

getTerritoryContainment() protected méthode

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

loadLocale() public méthode

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

main() public méthode

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

parse() protected méthode

protected parse ( string $file ) : array | null
$file string
Résultat array | null

setLocale() public méthode

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