Class $k.ValueRange

Represents the value range of an attribute type

Class Summary
Constructor Attributes Constructor Name and Description
 

Method Summary

Class Detail

$k.ValueRange()

Method Detail

  • parse(string, language)
    Parse the string representation and returns the converted value
    Parameters:
    {string} string
    The string represantation of the value that should be set.
    {string} language Optional
    Language of the value. If not defined, the current language will be used. Ignored if the attribute is not translated
    Throws:
    {$k.exception.InvalidValue}
    If the string is not in the range of allowed values of the attribute
    Returns:
    The converted value
  • {string} valueToString(value, language)
    Returns the string representation of the value
    Parameters:
    {string} value
    The value that should be converted
    {string} language Optional
    Language of the value. If not defined, the current language will be used. Ignored if the attribute is not translated
    Throws:
    {$k.exception.InvalidValue}
    If the value is not in the range of allowed values of the attribute
    Returns:
    {string}
  • {string} valueType()
    Returns a string describing the value type.

    One of

    • blob
    • boolean
    • choice
    • color
    • container
    • date
    • dateAndTime
    • flexTime
    • float
    • geoPosition
    • integer
    • interval
    • password
    • registyEntry
    • string
    • time
    • translatedAttribute
    • translation
    • url
    Returns:
    {string}