ResourceBundle\RegionBundle (Component\Intl)
Symfony\Component\Intl\ResourceBundle\RegionBundle
class RegionBundle extends RegionDataProvider implements RegionBundleInterface
Default implementation of {@link RegionBundleInterface}.
Methods
__construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider) Creates a new region bundle. | ||
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. |
Details
public __construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider)
Creates a new region bundle.
public getRegions()
public getName($region, $displayLocale = null)
public getNames($displayLocale = null)
public string|null getCountryName(string $country, string $displayLocale = null)
Returns the name of a country.
public string[] getCountryNames(string $displayLocale = null)
Returns the names of all known countries.
public string[] getLocales()
Returns the list of locales that this bundle supports.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Intl/ResourceBundle/RegionBundle.html