ImportToMappingFormLayoutUtil Class Reference

Static Public Member Functions

static make ($modelClassName, $form, $importRulesType, $mappableAttributeIndicesAndDerivedTypes)

Static Protected Member Functions

static resolveMappableAttributeIndicesAndDerivedTypesByColumnType ($mappableAttributeIndicesAndDerivedTypes, $columnType, $importRulesType)

Detailed Description

Helper utility for spliting $mappableAttributeIndicesAndDerivedTypes into one array for import columns and the other for extra columns. Then making a MappingFormLayoutUtil from this information.

Definition at line 41 of file ImportToMappingFormLayoutUtil.php.


Member Function Documentation

static make ( modelClassName,
form,
importRulesType,
mappableAttributeIndicesAndDerivedTypes 
) [static]

Given several parameters, make a MappingFormLayoutUtil object.

Parameters:
string $modelClassName
object $form
string $importRulesType
array $mappableAttributeIndicesAndDerivedTypes

Definition at line 50 of file ImportToMappingFormLayoutUtil.php.

static resolveMappableAttributeIndicesAndDerivedTypesByColumnType ( mappableAttributeIndicesAndDerivedTypes,
columnType,
importRulesType 
) [static, protected]

Based on the column type, filter down (sanitize) the array of $mappableAttributeIndicesAndDerivedTypes based on which attribute indices and derived types are available.

Parameters:
array $mappableAttributeIndicesAndDerivedTypes
string $columnType
Returns:
a sanitized array of $mappableAttributeIndicesAndDerivedTypes for the column type.

Definition at line 72 of file ImportToMappingFormLayoutUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Apr 27 07:10:26 2017