Symfony\Component\Intl\Intl
Gives access to internationalization data.
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class Intl
{
- // constants
- const BUFFER_SIZE = 10;
- // members
- private CurrencyBundleInterface $currencyBundle;
- private LanguageBundleInterface $languageBundle;
- private LocaleBundleInterface $localeBundle;
- private RegionBundleInterface $regionBundle;
- private string|Boolean|null $icuVersion;
- private string $icuDataVersion;
- private StructuredBundleReaderInterface $bundleReader;
- // methods
- public static Boolean isExtensionLoaded()
- public static CurrencyBundleInterface getCurrencyBundle()
- public static LanguageBundleInterface getLanguageBundle()
- public static LocaleBundleInterface getLocaleBundle()
- public static RegionBundleInterface getRegionBundle()
- public static null|string getIcuVersion()
- public static string getIcuDataVersion()
- public static string getIcuStubVersion()
- private static StructuredBundleReaderInterface getBundleReader()
- private void __construct()
Constants
Name | Value |
---|---|
BUFFER_SIZE | 10 |
Members
private
- $bundleReader — Symfony\Component\Intl\ResourceBundle\Reader\StructuredBundleReaderInterface
- $currencyBundle — Symfony\Component\Intl\ResourceBundle\CurrencyBundleInterface
- $icuDataVersion — string
- $icuVersion — Symfony\Component\Intl\string|Boolean|null
- $languageBundle — Symfony\Component\Intl\ResourceBundle\LanguageBundleInterface
- $localeBundle — Symfony\Component\Intl\ResourceBundle\LocaleBundleInterface
- $regionBundle — Symfony\Component\Intl\ResourceBundle\RegionBundleInterface
Methods
private
- __construct() — This class must not be instantiated.
- getBundleReader() — Returns a resource bundle reader for .php resource bundle files.
public
- getCurrencyBundle() — Returns the bundle containing currency information.
- getIcuDataVersion() — Returns the version of the installed ICU data.
- getIcuStubVersion() — Returns the ICU version that the stub classes mimic.
- getIcuVersion() — Returns the version of the installed ICU library.
- getLanguageBundle() — Returns the bundle containing language information.
- getLocaleBundle() — Returns the bundle containing locale information.
- getRegionBundle() — Returns the bundle containing region information.
- isExtensionLoaded() — Returns whether the intl extension is installed.