CustomFieldDataModelUtil Class Reference

Static Public Member Functions

static getModelPluralNameAndAttributeLabelsByName ($name)
static getDataByModelClassNameAndAttributeName ($modelClassName, $attributeName)

Detailed Description

Helper class to interrogate relationships between customFieldData models and other models in the application.

Definition at line 41 of file CustomFieldDataModelUtil.php.

Member Function Documentation

static getModelPluralNameAndAttributeLabelsByName ( name  )  [static]

Use this function to ascertain if a particular customFieldData model is used by more than one attribute in the application. An example is a pick list that is shared by two separate attributes in two different models.

array of model plural label / attribute label pairings.

Important Limitations to understand!! Only supports up to one attribute per model that uses the same customFieldData. Only searches primary models of the modules in the system.

Definition at line 53 of file CustomFieldDataModelUtil.php.

static getDataByModelClassNameAndAttributeName ( modelClassName,
) [static]

Given a model class name and an attribute name, get the CustomFieldData object associated with this attribute. Requires the attribute to be a customField type attribute otherwise it will throw an error.

string $modelClassName
string $attributeName

Definition at line 86 of file CustomFieldDataModelUtil.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Nov 16 07:10:23 2018