LanguageDataProvider

class LanguageDataProvider

Data provider for language-related ICU data.

Methods

__construct(string $path, BundleEntryReaderInterface $reader)

Creates a data provider that reads locale-related data from .res files.

getLanguages()
getAliases()
getName($language, $displayLocale = null)
getNames($displayLocale = null)
getAlpha3Code($language)

Details

__construct(string $path, BundleEntryReaderInterface $reader)

Creates a data provider that reads locale-related data from .res files.

Parameters

string $path The path to the directory containing the .res files.
BundleEntryReaderInterface $reader The reader for reading the .res files.

getLanguages()

getAliases()

getName($language, $displayLocale = null)

Parameters

$language
$displayLocale

getNames($displayLocale = null)

Parameters

$displayLocale

getAlpha3Code($language)

Parameters

$language
doc_Symfony
2016-10-28 06:22:18
Comments
Leave a Comment

Please login to continue.