mediatekformation

Intl
in package

Gives access to internationalization data.

Tags
author

Bernhard Schussek bschussek@gmail.com

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

$entryReader

private static BundleEntryReaderInterface $entryReader

$icuDataVersion

private static string $icuDataVersion = false

$icuVersion

private static string|bool|null $icuVersion = false

Methods

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

getLocaleBundle()

Returns the bundle containing locale information.

public static getLocaleBundle() : LocaleBundleInterface
Tags
deprecated

since Symfony 4.3, to be removed in 5.0. Use Locales instead.

Return values
LocaleBundleInterface

The locale 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
Return values
BundleEntryReaderInterface

Search results