lib/ezlocale/classes/ezlocale.php
File containing the eZLocale class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- lib
- Version
- 4.6.0
\eZLocale
Package: lib
Parameters
Returns
File containing the eZLocale class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Constants
Properties
Methods


countryList(
$withVariations
=
true
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$withVariations |


fetchByHttpLocaleCode(
$httpLocaleCode
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$httpLocaleCode |


formatCurrencyWithSymbol(
$number, $symbol
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$number | ||
$symbol |


formatDateTimeType(
$fmt, $datetime
=
false
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$fmt | ||
$datetime |


instance(
string | false $localeString
=
false
)
:
\eZLocale
static
Returns a shared instance of the eZLocale class pr locale string.
If $localeString is not specified the default local string in site.ini is used. Use this instead of newing eZLocale to benefit from speed and unified access. note: Use create() if you need to get a new unique copy you can alter.
Name | Type | Description |
---|---|---|
$localeString | string | false |
Type | Description |
---|---|
\eZLocale |


languageList(
$withVariations
=
true
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$withVariations |


localeList(
$asObject
=
false, $withVariations
=
true
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$asObject | ||
$withVariations |


localeRegexp(
$withVariations
=
true, $withCharset
=
true
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$withVariations | ||
$withCharset |


meridiemName(
$time
=
false, $upcase
=
false
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$time | ||
$upcase |