lib/ezlocale/classes/ezlocale.php
\eZLocale
Package:
Parameters
Returns
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(
\$localeString $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 | \$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 |