Intl
in package
Gives access to internationalization data.
Tags
Table of Contents
- BUFFER_SIZE = 10
- The number of resource bundles to buffer. Loading the same resource bundle for n locales takes up n spots in the buffer.
- CURRENCY_DIR = 'currencies'
- The directory name of the currency data.
- LANGUAGE_DIR = 'languages'
- The directory name of the language data.
- LOCALE_DIR = 'locales'
- The directory name of the locale data.
- REGION_DIR = 'regions'
- The directory name of the region data.
- SCRIPT_DIR = 'scripts'
- The directory name of the script data.
- TIMEZONE_DIR = 'timezones'
- The directory name of the zone data.
- $currencyBundle : CurrencyBundleInterface
- $entryReader : BundleEntryReaderInterface
- $icuDataVersion : string
- $icuVersion : string|bool|null
- $languageBundle : LanguageBundleInterface
- $localeBundle : LocaleBundleInterface
- $regionBundle : RegionBundleInterface
- getCurrencyBundle() : CurrencyBundleInterface
- Returns the bundle containing currency information.
- getDataDirectory() : string
- Returns the absolute path to the data directory.
- getIcuDataVersion() : string
- Returns the version of the installed ICU data.
- getIcuStubVersion() : string
- Returns the ICU version that the stub classes mimic.
- getIcuVersion() : string|null
- Returns the version of the installed ICU library.
- getLanguageBundle() : LanguageBundleInterface
- Returns the bundle containing language information.
- getLocaleBundle() : LocaleBundleInterface
- Returns the bundle containing locale information.
- getRegionBundle() : RegionBundleInterface
- Returns the bundle containing region information.
- isExtensionLoaded() : bool
- Returns whether the intl extension is installed.
- __construct() : mixed
- This class must not be instantiated.
- getEntryReader() : BundleEntryReaderInterface
- Returns the cached bundle entry reader.
Constants
BUFFER_SIZE
The number of resource bundles to buffer. Loading the same resource bundle for n locales takes up n spots in the buffer.
public
mixed
BUFFER_SIZE
= 10
CURRENCY_DIR
The directory name of the currency data.
public
mixed
CURRENCY_DIR
= 'currencies'
LANGUAGE_DIR
The directory name of the language data.
public
mixed
LANGUAGE_DIR
= 'languages'
LOCALE_DIR
The directory name of the locale data.
public
mixed
LOCALE_DIR
= 'locales'
REGION_DIR
The directory name of the region data.
public
mixed
REGION_DIR
= 'regions'
SCRIPT_DIR
The directory name of the script data.
public
mixed
SCRIPT_DIR
= 'scripts'
TIMEZONE_DIR
The directory name of the zone data.
public
mixed
TIMEZONE_DIR
= 'timezones'
Properties
$currencyBundle
private
static CurrencyBundleInterface
$currencyBundle
$entryReader
private
static BundleEntryReaderInterface
$entryReader
$icuDataVersion
private
static string
$icuDataVersion
= false
$icuVersion
private
static string|bool|null
$icuVersion
= false
$languageBundle
private
static LanguageBundleInterface
$languageBundle
$localeBundle
private
static LocaleBundleInterface
$localeBundle
$regionBundle
private
static RegionBundleInterface
$regionBundle
Methods
getCurrencyBundle()
Returns the bundle containing currency information.
public
static getCurrencyBundle() : CurrencyBundleInterface
Tags
Return values
CurrencyBundleInterface —The currency resource bundle
getDataDirectory()
Returns the absolute path to the data directory.
public
static getDataDirectory() : string
Return values
string —The absolute path to the data directory
getIcuDataVersion()
Returns the version of the installed ICU data.
public
static getIcuDataVersion() : string
Return values
string —The version of the installed ICU data
getIcuStubVersion()
Returns the ICU version that the stub classes mimic.
public
static getIcuStubVersion() : string
Return values
string —The ICU version of the stub classes
getIcuVersion()
Returns the version of the installed ICU library.
public
static getIcuVersion() : string|null
Return values
string|null —The ICU version or NULL if it could not be determined
getLanguageBundle()
Returns the bundle containing language information.
public
static getLanguageBundle() : LanguageBundleInterface
Tags
Return values
LanguageBundleInterface —The language resource bundle
getLocaleBundle()
Returns the bundle containing locale information.
public
static getLocaleBundle() : LocaleBundleInterface
Tags
Return values
LocaleBundleInterface —The locale resource bundle
getRegionBundle()
Returns the bundle containing region information.
public
static getRegionBundle() : RegionBundleInterface
Tags
Return values
RegionBundleInterface —The region resource bundle
isExtensionLoaded()
Returns whether the intl extension is installed.
public
static isExtensionLoaded() : bool
Return values
bool —Returns true if the intl extension is installed, false otherwise
__construct()
This class must not be instantiated.
private
__construct() : mixed
Return values
mixed —getEntryReader()
Returns the cached bundle entry reader.
private
static getEntryReader() : BundleEntryReaderInterface