ModelAttributeToMixedTypeUtil Class Reference

Inheritance diagram for ModelAttributeToMixedTypeUtil:
ModelAttributeToDesignerTypeUtil ModelAttributeToMixedArrayTypeUtil ModelAttributeToWorkflowActionAttributeFormTypeUtil

Static Public Member Functions

static getType ($model, $attributeName)
static getTypeByModelUsingValidator ($model, $attributeName)

Detailed Description

Helper functionality for finding the element or form type associated with a model's attribute.

Definition at line 41 of file ModelAttributeToMixedTypeUtil.php.


Member Function Documentation

static getType ( model,
attributeName 
) [static]

Returns the a type that is derived by looking at several different components of an attribute. This includes the metadata element data, validator data, and relation information. The type returned can be utilized by different aspects of the application where an attribute type is needed.

Returns:
string type

Reimplemented in ModelAttributeToMixedArrayTypeUtil, and ModelAttributeToWorkflowActionAttributeFormTypeUtil.

Definition at line 49 of file ModelAttributeToMixedTypeUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Jul 23 07:10:28 2017