Class

eZLocale

class eZLocale

Constants

DEBUG_INTERNALS

Properties

$IsValid
$DateFormat
$ShortDateFormat
$TimeFormat
$ShortTimeFormat
$MondayFirst
$AM
$PM
$DecimalSymbol
$ThousandsSeparator
$FractDigits
$NegativeSymbol
$PositiveSymbol
$CurrencyDecimalSymbol
$CurrencyThousandsSeparator
$CurrencyFractDigits
$CurrencyNegativeSymbol
$CurrencyPositiveSymbol
$CurrencySymbol
$CurrencyPositiveFormat
$CurrencyNegativeFormat
$DayNames
$ShortDayNames
$LongDayNames
$MonthNames
$ShortMonthNames
$LongMonthNames
$WeekDays
$Months
$ShortWeekDayNames
$LongWeekDayNames
$TimeArray
$DateArray
$TimePHPArray
$DatePHPArray
$Country
$CountryCode
$CountryVariation
$CountryComment
$LanguageComment
$LocaleINI
$CountryINI
$LanguageINI
$LanguageCode
$LanguageName
$IntlLanguageName
$CountryNames

Methods

__construct(string $localeString)

Initializes the locale with the locale string \a $localeString.

reset()

isValid()

initCountry($countryINI)

initLanguage($languageINI)

localeInformation($localeString)

initPHP($charset = false)

attributes()

hasAttribute($attribute)

attribute($attribute)

attributeFunctionMap()

charset()

allowedCharsets()

countryName()

countryComment()

countryCode()

countryVariation()

languageCode()

languageComment()

localeCode()

localeFullCode()

httpLocaleCode()

languageName()

internationalLanguageName()

currencySymbol()

currencyName()

currencyShortName()

isMondayFirst()

decimalSymbol()

thousandsSeparator()

decimalCount()

negativeSymbol()

positiveSymbol()

currencyDecimalSymbol()

currencyThousandsSeparator()

currencyDecimalCount()

currencyNegativeSymbol()

currencyPositiveSymbol()

weekDays()

months()

monthsNames()

weekDayNames($short = false)

weekDayShortNames()

getFormattingFunction($qualifier)

formatTime($time = false)

formatShortTime($time = false)

formatTimeType($fmt, $time = false)

meridiemName($time = false, $upcase = false)

formatDate($date = false)

formatShortDate($date = false)

formatDateTime($date = false)

formatShortDateTime($date = false)

formatDateType($fmt, $date = false)

formatDateTimeType($fmt, $datetime = false)

formatNumber($number)

internalNumber($number)

formatCurrency($number, $as_html = true)

formatCleanCurrency($number)

formatCurrencyWithSymbol($number, $symbol)

translatedCountryNames()

internalCurrency($number)

shortDayName($num)

longDayName($num)

shortMonthName($num)

longMonthName($num)

localeFile($withVariation = false)

countryFile($withVariation = false)

languageFile($withVariation = false)

Details

at line 120
public __construct(string $localeString)

Initializes the locale with the locale string \a $localeString.

All locale data is read from locale/$localeString.ini

Parameters

string $localeString

at line 250
public reset()

at line 316
public isValid()

at line 324
public initCountry($countryINI)

Parameters

$countryINI

at line 363
public initLanguage($languageINI)

Parameters

$languageINI

at line 473
public localeInformation($localeString)

Parameters

$localeString

at line 517
public initPHP($charset = false)

Parameters

$charset

at line 524
public attributes()

at line 529
public hasAttribute($attribute)

Parameters

$attribute

at line 538
public attribute($attribute)

Parameters

$attribute

at line 559
public attributeFunctionMap()

at line 600
public charset()

at line 608
public allowedCharsets()

at line 616
public countryName()

at line 624
public countryComment()

at line 632
public countryCode()

at line 640
public countryVariation()

at line 648
public languageCode()

at line 656
public languageComment()

at line 665
public localeCode()

at line 673
public localeFullCode()

at line 688
public httpLocaleCode()

at line 719
public languageName()

at line 727
public internationalLanguageName()

at line 735
public currencySymbol()

at line 743
public currencyName()

at line 751
public currencyShortName()

at line 760
public isMondayFirst()

at line 768
public decimalSymbol()

at line 776
public thousandsSeparator()

at line 784
public decimalCount()

at line 792
public negativeSymbol()

at line 800
public positiveSymbol()

at line 808
public currencyDecimalSymbol()

at line 816
public currencyThousandsSeparator()

at line 824
public currencyDecimalCount()

at line 832
public currencyNegativeSymbol()

at line 840
public currencyPositiveSymbol()

at line 850
public weekDays()

at line 859
public months()

at line 868
public monthsNames()

at line 876
public weekDayNames($short = false)

Parameters

$short

at line 894
public weekDayShortNames()

at line 902
public getFormattingFunction($qualifier)

Parameters

$qualifier

at line 933
public formatTime($time = false)

Parameters

$time

at line 942
public formatShortTime($time = false)

Parameters

$time

at line 952
public formatTimeType($fmt, $time = false)

Parameters

$fmt
$time

at line 972
public meridiemName($time = false, $upcase = false)

Parameters

$time
$upcase

at line 987
public formatDate($date = false)

Parameters

$date

at line 996
public formatShortDate($date = false)

Parameters

$date

at line 1005
public formatDateTime($date = false)

Parameters

$date

at line 1014
public formatShortDateTime($date = false)

Parameters

$date

at line 1024
public formatDateType($fmt, $date = false)

Parameters

$fmt
$date

at line 1049
public formatDateTimeType($fmt, $datetime = false)

Parameters

$fmt
$datetime

at line 1144
public formatNumber($number)

Parameters

$number

at line 1155
public internalNumber($number)

Parameters

$number

at line 1174
public formatCurrency($number, $as_html = true)

Parameters

$number
$as_html

at line 1184
public formatCleanCurrency($number)

Parameters

$number

at line 1190
public formatCurrencyWithSymbol($number, $symbol)

Parameters

$number
$symbol

at line 1203
public translatedCountryNames()

at line 1211
public internalCurrency($number)

Parameters

$number

at line 1238
public shortDayName($num)

Parameters

$num

at line 1265
public longDayName($num)

Parameters

$num

at line 1297
public shortMonthName($num)

Parameters

$num

at line 1329
public longMonthName($num)

Parameters

$num

at line 1443
public localeFile($withVariation = false)

Parameters

$withVariation

at line 1474
public countryFile($withVariation = false)

Parameters

$withVariation

at line 1502
public languageFile($withVariation = false)

Parameters

$withVariation