All Data Structures Functions Variables Pages
Static Public Member Functions
ModelAttributeImportMappingCollectionUtil Class Reference

Static Public Member Functions

static populateCollection (&$collection, $attributeIndex, $attributeLabel, $attributeName, $elementType, $relationAttributeName=null, $isRequired=false)

Detailed Description

Helper class to get a collection of attributes from the model. If the attribute is a relation model attribute, the attribute name will be setup like relation__attributeName, where relation is model's relation name, and attributeName is the attributeName on the relation model.

Definition at line 43 of file ModelAttributeImportMappingCollectionUtil.php.

Member Function Documentation

static populateCollection ( $collection,
  $relationAttributeName = null,
  $isRequired = false 

Takes a collection and attribute properties and populates the collection with that attribute.


Definition at line 50 of file ModelAttributeImportMappingCollectionUtil.php.

The documentation for this class was generated from the following file:
Generated on Sat Apr 4 2020 07:11:12