Class: CustomFieldValues

Model~CustomFieldValues(data) → {void}

CustomFieldValues data model.

Constructor

new CustomFieldValues(data) → {void}

CustomFieldValues Constructor.

CustomFieldValues Constructor.

Parameters:
Name Type Description
data Object
Source:
Returns:
Type
void

Methods

addValue(field, value, module) → {CustomFieldValues}

Add a custom field value.

Add a custom field value.

Parameters:
Name Type Default Description
field string
value *
module string customfields
Source:
Returns:
Type
CustomFieldValues

getModule(module) → {Object}

Get a specific modules custom field values.

Get a specific modules custom field values.

Parameters:
Name Type Description
module string
Source:
Returns:
Type
Object

getValue(code, module) → {*}

Get a value for a module by its code.

Get a value for a module by its code.

Parameters:
Name Type Default Description
code string
module string customfields
Source:
Returns:
Type
*

hasModule(module) → {boolean}

Check if a specific module is defined.

Check if a specific module is defined.

Parameters:
Name Type Description
module string
Source:
Returns:
Type
boolean

hasValue(code, module) → {boolean}

Check if a value for code and module exists.

Check if a value for code and module exists.

Parameters:
Name Type Default Description
code string
module string customfields
Source:
Returns:
Type
boolean