ImportWizardForm Class Reference

Inheritance diagram for ImportWizardForm:
ConfigurableMetadataModel

Public Member Functions

 rules ()
 attributeLabels ()
 getExplicitReadWriteModelPermissions ()
 setExplicitReadWriteModelPermissions ($explicitReadWriteModelPermissions)
 validateMappingData ($attribute, $params)
 validateRowColumnDelimeterIsNotEmpty ()
 validateRowColumnEnclosureIsNotEmpty ()

Data Fields

 $id
 $importRulesType
 $fileUploadData
 $rowColumnDelimiter = ','
 $rowColumnEnclosure = '"'
 $firstRowIsHeaderRow
 $mappingData

Protected Attributes

 $explicitReadWriteModelPermissions

Detailed Description

This form works with the import wizard views to collect data from the user interface and validate it. MappingRules data is not validated using this form, however the mapping rules data is collected and stored in the mappingData array.

See also:
MappingRuleFormAndElementTypeUtil::validateMappingRuleForms

Definition at line 43 of file ImportWizardForm.php.


Member Function Documentation

validateMappingData ( attribute,
params 
)

Validation used in the saveMappingData scenario to make sure the mapping data is correct based on user input. Runs several different validations on the data. This does not validate the validity of the mapping rules data itself. That is done seperately.

See also:
MappingRuleFormAndElementTypeUtil::validateMappingRuleForms
Parameters:
string $attribute
array $params

Definition at line 146 of file ImportWizardForm.php.

validateRowColumnDelimeterIsNotEmpty (  ) 

Validation used when a file is uploaded on the import section. It validates that a column delimeter value was introduced on the form.

Returns:
bool If the value is not empty, returns true, otherwise returns false.

Definition at line 217 of file ImportWizardForm.php.

validateRowColumnEnclosureIsNotEmpty (  ) 

Validation used when a file is uploaded on the import section. It validates that a column enclosure value was introduced on the form.

Returns:
bool If the value is not empty, returns true, otherwise returns false.

Definition at line 231 of file ImportWizardForm.php.


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