mura.resourceBundle

Class utils

lucee.Component
    extended by mura.cfobject
      extended by mura.resourceBundle.utils

This provides resource bundle utility methods

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(any locale='en_US')
    Method Summary
    any dateLocaleFormat(date date, [string style='LONG'])
         locale version of dateFormat.
    any datetimeLocaleFormat(date date, [string dateStyle='SHORT'], [string timeStyle='SHORT'])
         locale date/time format.
    array getAvailableLocales()
         Returns an array of locales.
    any getCurrentLocale()
         Returns current locale.
    any getJSDateKey()
    any getJSDateKeyExample()
    any getJSDateKeyFormat()
    any getJsDateKeyObjInc()
    array getLocalizedDays()
         Returns localized days.
    any getLocalizedMonth(numeric month)
         Returns localized month.
    any getLocalizedName()
         Returns current locale name.
    any getLocalizedYear(numeric thisYear)
         Returns localized year, probably only useful for BE calendars like in thailand, etc.
    boolean isBIDI()
    boolean isValidLocale(string thisLocale)
    any java2CF()
         Switches Java locale to CF locale (for CF6).
    any loadLocale()
         Loads a locale.
    any setJSDateKeys()
    any timeLocaleFormat(date date, [string style='SHORT'])
         locale version of timeFormat.
    any weekStarts()
         Determines the first DOW.
     
    Methods inherited from class mura.cfobject
    commitTracePoint, convertTimezone, deleteMethod, get, getAsJSON, getAsStruct, getBean, getConfigBean, getCurrentUser, getEventManager, getFeed, getHTTPAttrs, getHTTPService, getJavaTimezone, getPlugin, getPluginManager, getQueryAttrs, getQueryService, getServiceFactory, getSession, getValue, hasCustomDatasource, initTracePoint, inject, injectMethod, invokeMethod, mixin, parseDateArg, removeValue, set, setValue, valueExists
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any locale='en_US')

    Parameters:
    locale

    Method Detail

    dateLocaleFormat

    public any dateLocaleFormat(date date, [string style='LONG'])

    locale version of dateFormat

    Parameters:
    date
    style

    datetimeLocaleFormat

    public any 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 any getCurrentLocale()

    Returns current locale


    getJSDateKey

    public any getJSDateKey()


    getJSDateKeyExample

    public any getJSDateKeyExample()


    getJSDateKeyFormat

    public any getJSDateKeyFormat()


    getJsDateKeyObjInc

    public any getJsDateKeyObjInc()


    getLocalizedDays

    public array getLocalizedDays()

    Returns localized days


    getLocalizedMonth

    public any getLocalizedMonth(numeric month)

    Returns localized month

    Parameters:
    month

    getLocalizedName

    public any getLocalizedName()

    Returns current locale name


    getLocalizedYear

    public any 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 any java2CF()

    Switches Java locale to CF locale (for CF6)


    loadLocale

    public any loadLocale()

    Loads a locale.


    setJSDateKeys

    public any setJSDateKeys()


    timeLocaleFormat

    public any timeLocaleFormat(date date, [string style='SHORT'])

    locale version of timeFormat

    Parameters:
    date
    style

    weekStarts

    public any weekStarts()

    Determines the first DOW