Child pages
  • Providing Converters and Validators from Plugins

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A column converter class implementing the ITypedColumnConverter interface has to implement the following three methods that will be displayed in the Conversion tag tab:

  • convertFromObject()
    Converts from dataprovider value to db value

  • convertToObject()
    Converts from db value to dataprovider value

  • getToObjectType(one of TEXT IColumnTypes constants: TEXT, INTEGER, NUMBER, DATETIME or MEDIA)
    The dataprovider data type (so the resulting type of the convertToObject()).
    This type can be provided by using the IColumnTypes constants.

A column converter class can define properties in the getDefaultProperties() method, which will be displayed in the Conversion tab as well.

...