All Data Structures Functions Variables Pages
Static Public Member Functions | Static Protected Member Functions
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 
)
staticprotected

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:
Generated on Wed Jun 3 2020 07:10:50