Mura CMS 6.1

mura.resourceBundle
Class utils

railo-context.Component
        extended by mura.cfobject
            extended by mura.resourceBundle.utils

public class utils
extends cfobject

Constructor Summary
init(any locale='en_US')
 
Method Summary
 string dateLocaleFormat(date date, [string style='LONG'])
          locale version of dateFormat
 string datetimeLocaleFormat(date date, [string dateStyle='SHORT'], [string timeStyle='SHORT'])
          locale date/time format
 array getAvailableLocales()
          Returns an array of locales
 string getCurrentLocale()
          Returns current locale
 any getJSDateKey()
 any getJSDateKeyExample()
 any getJSDateKeyFormat()
 array getLocalizedDays()
          Returns localized days
 string getLocalizedMonth(numeric month)
          Returns localized month
 string getLocalizedName()
          Returns current locale name
 string getLocalizedYear(numeric thisYear)
          Returns localized year, probably only useful for BE calendars like in thailand, etc
 boolean isBIDI()
 boolean isValidLocale(string thisLocale)
 string java2CF()
          Switches Java locale to CF locale (for CF6)
 void loadLocale()
          Loads a locale
 any setJSDateKeys()
 string timeLocaleFormat(date date, [string style='SHORT'])
          locale version of timeFormat
 string weekStarts()
          Determines the first DOW
 
Methods inherited from class mura.cfobject
commitTracePoint, deleteMethod, getAsJSON, getAsStruct, getBean, getConfigBean, getCurrentUser, getEventManager, getPlugin, getPluginManager, getServiceFactory, getValue, initTracePoint, injectMethod, invokeMethod, removeValue, setValue, valueExists
 
Methods inherited from class railo-context.Component
 

Constructor Detail

init

public init(any locale='en_US')

Parameters:
locale
Method Detail

dateLocaleFormat

public string dateLocaleFormat(date date, [string style='LONG'])
locale version of dateFormat

Parameters:
date
style

datetimeLocaleFormat

public string datetimeLocaleFormat(date date, [string dateStyle='SHORT'], [string timeStyle='SHORT'])
locale date/time format

Parameters:
date
dateStyle
timeStyle

getAvailableLocales

public array getAvailableLocales()
Returns an array of locales.


getCurrentLocale

public string getCurrentLocale()
Returns current locale


getJSDateKey

public any getJSDateKey()


getJSDateKeyExample

public any getJSDateKeyExample()


getJSDateKeyFormat

public any getJSDateKeyFormat()


getLocalizedDays

public array getLocalizedDays()
Returns localized days


getLocalizedMonth

public string getLocalizedMonth(numeric month)
Returns localized month

Parameters:
month

getLocalizedName

public string getLocalizedName()
Returns current locale name


getLocalizedYear

public string getLocalizedYear(numeric thisYear)
Returns localized year, probably only useful for BE calendars like in thailand, etc.

Parameters:
thisYear

isBIDI

public boolean isBIDI()


isValidLocale

public boolean isValidLocale(string thisLocale)

Parameters:
thisLocale

java2CF

public string java2CF()
Switches Java locale to CF locale (for CF6)


loadLocale

public void loadLocale()
Loads a locale.


setJSDateKeys

public any setJSDateKeys()


timeLocaleFormat

public string timeLocaleFormat(date date, [string style='SHORT'])
locale version of timeFormat

Parameters:
date
style

weekStarts

public string weekStarts()
Determines the first DOW


Mura CMS 6.1