Documentation

Intl
in package

FinalYes

Gives access to internationalization data.

Tags
author

Bernhard Schussek bschussek@gmail.com

Table of Contents

Constants

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.

Properties

$icuDataVersion  : string
$icuVersion  : string|false|null

Methods

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.
isExtensionLoaded()  : bool
Returns whether the intl extension is installed.
__construct()  : mixed
This class must not be instantiated.

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

$icuDataVersion

private static string $icuDataVersion

$icuVersion

private static string|false|null $icuVersion = false

Methods

getDataDirectory()

Returns the absolute path to the data directory.

public static getDataDirectory() : string
Return values
string

getIcuDataVersion()

Returns the version of the installed ICU data.

public static getIcuDataVersion() : string
Return values
string

getIcuStubVersion()

Returns the ICU version that the stub classes mimic.

public static getIcuStubVersion() : string
Return values
string

getIcuVersion()

Returns the version of the installed ICU library.

public static getIcuVersion() : string|null
Return values
string|null

isExtensionLoaded()

Returns whether the intl extension is installed.

public static isExtensionLoaded() : bool
Return values
bool

__construct()

This class must not be instantiated.

private __construct() : mixed

        
On this page

Search results