DropDownDependencyToMappingLayoutAdapter Class Reference

Public Member Functions

 __construct ($modelClassName, $attributeName, $maxDepth)
 makeDependencyCollectionByMappingData ($mappingData)
 getCustomFieldAttributesNotUsedInOtherDependencyAttributes ()

Protected Member Functions

 resolveAvailableCustomFieldAttributes (&$availableCustomFieldAttributes, $parentAttributeName)
 getAttributeCustomFieldData ($attributeName)
 resolveValuesToParentValues ($dependencyData)

Protected Attributes

 $modelClassName
 $attributeName
 $maxDepth

Detailed Description

Helper class to adapt a drop down dependency mapping into a dependency collection that can be utilized by the mapping layout to display in the user interface.

Definition at line 41 of file DropDownDependencyToMappingLayoutAdapter.php.


Constructor & Destructor Documentation

__construct ( modelClassName,
attributeName,
maxDepth 
)
Parameters:
string $modelClassName
string $attributeName
integer $maxDepth

Definition at line 54 of file DropDownDependencyToMappingLayoutAdapter.php.


Member Function Documentation

makeDependencyCollectionByMappingData ( mappingData  ) 

Given an array of mapping data, create a collection of DropDownDependencyCustomFieldMapping objects. Include the unmapped objects as well. For example, if the mapping data only has mappings for 2 attributes, based on the

See also:
$this->maxDepth, it should make additional DropDownDependencyCustomFieldMapping if required.
Parameters:
array $mappingData
Returns:
array of DropDownDependencyCustomFieldMapping objects.

Definition at line 71 of file DropDownDependencyToMappingLayoutAdapter.php.

getCustomFieldAttributesNotUsedInOtherDependencyAttributes (  ) 

Public for testing only.

Definition at line 124 of file DropDownDependencyToMappingLayoutAdapter.php.


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