class RegionBundle extends RegionDataProvider implements RegionBundleInterface
Default implementation of {@link RegionBundleInterface}.
| __construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider) Creates a data provider that reads locale-related data from .res files. | ||
| getRegions() | from RegionDataProvider | |
| getName($region, $displayLocale = null) | from RegionDataProvider | |
| getNames($displayLocale = null) | from RegionDataProvider | |
| string|null | getCountryName(string $country, string $displayLocale = null) Returns the name of a country. | |
| string[] | getCountryNames(string $displayLocale = null) Returns the names of all known countries. | |
| string[] | getLocales() Returns the list of locales that this bundle supports. |
Creates a data provider that reads locale-related data from .res files.
| string | $path | The path to the directory containing the .res files |
| BundleEntryReaderInterface | $reader | The reader for reading the .res files |
| LocaleDataProvider | $localeProvider |
| $region | ||
| $displayLocale |
| $displayLocale |
Returns the name of a country.
| string | $country | A country code (e.g. "US") |
| string | $displayLocale | Optional. The locale to return the name in Defaults to {@link \Locale::getDefault()}. |
| string|null | The name of the country or NULL if not found |
Returns the names of all known countries.
| string | $displayLocale | Optional. The locale to return the names in Defaults to {@link \Locale::getDefault()}. |
| string[] | A list of country names indexed by country codes |
Returns the list of locales that this bundle supports.
| string[] | A list of locale codes |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Intl/ResourceBundle/RegionBundle.html