Symfony\Component\Locale\Stub\StubLocale
Alias of {@link \Symfony\Component\Intl\Locale\Locale}.
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class StubLocale
extends Locale
{
- // Inherited constants from Locale
- const DEFAULT_LOCALE = ;
- const ACTUAL_LOCALE = 0;
- const VALID_LOCALE = 1;
- const LANG_TAG = 'language';
- const EXTLANG_TAG = 'extlang';
- const SCRIPT_TAG = 'script';
- const REGION_TAG = 'region';
- const VARIANT_TAG = 'variant';
- const GRANDFATHERED_LANG_TAG = 'grandfathered';
- const PRIVATE_TAG = 'private';
- // members
- protected array $currencies;
- protected array $currenciesNames;
- // methods
- public static array getCurrenciesData()
- public static array getDisplayCurrencies()
- public static array getCurrencies()
- public static void getDataDirectory()
- private static void prepareCurrencies()
- // Inherited methods from Locale
- public static string acceptFromHttp()
- public static string composeLocale()
- public static string filterMatches()
- public static array getAllVariants()
- public static string getDefault()
- public static string getDisplayLanguage()
- public static string getDisplayName()
- public static string getDisplayRegion()
- public static string getDisplayScript()
- public static string getDisplayVariant()
- public static array getKeywords()
- public static string|null getPrimaryLanguage()
- public static string|null getRegion()
- public static string|null getScript()
- public static void lookup()
- public static array parseLocale()
- public static Boolean setDefault()
Hierarchy
Constants
Name | Value |
---|---|
DEFAULT_LOCALE | |
ACTUAL_LOCALE | 0 |
VALID_LOCALE | 1 |
LANG_TAG | 'language' |
EXTLANG_TAG | 'extlang' |
SCRIPT_TAG | 'script' |
REGION_TAG | 'region' |
VARIANT_TAG | 'variant' |
GRANDFATHERED_LANG_TAG | 'grandfathered' |
PRIVATE_TAG | 'private' |
Members
protected
- $currencies
—
array
Caches the currencies - $currenciesNames
—
array
Caches the currencies names
Methods
private
public
- getCurrencies() — Returns all available currencies codes
- getCurrenciesData() — Returns the currencies data
- getDataDirectory()
- getDisplayCurrencies() — Returns the currencies names for a locale
Inherited from Symfony\Component\Intl\Locale\Locale
public
- acceptFromHttp() — Not supported. Returns the best available locale based on HTTP "Accept-Language" header according to RFC 2616
- composeLocale() — Not supported. Returns a correctly ordered and delimited locale code
- filterMatches() — Not supported. Checks if a language tag filter matches with locale
- getAllVariants() — Not supported. Returns the variants for the input locale
- getDefault() — Returns the default locale
- getDisplayLanguage() — Not supported. Returns the localized display name for the locale language
- getDisplayName() — Not supported. Returns the localized display name for the locale
- getDisplayRegion() — Not supported. Returns the localized display name for the locale region
- getDisplayScript() — Not supported. Returns the localized display name for the locale script
- getDisplayVariant() — Not supported. Returns the localized display name for the locale variant
- getKeywords() — Not supported. Returns the keywords for the locale
- getPrimaryLanguage() — Not supported. Returns the primary language for the locale
- getRegion() — Not supported. Returns the region for the locale
- getScript() — Not supported. Returns the script for the locale
- lookup() — Not supported. Returns the closest language tag for the locale
- parseLocale() — Not supported. Returns an associative array of locale identifier subtags
- setDefault() — Not supported. Sets the default runtime locale