All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions
RequiredSanitizerUtil Class Reference
Inheritance diagram for RequiredSanitizerUtil:
SanitizerUtil ContactStateRequiredSanitizerUtil DropDownRequiredSanitizerUtil FullNameRequiredSanitizerUtil ModelIdRequiredSanitizerUtil MultiSelectDropDownRequiredSanitizerUtil LeadStateRequiredSanitizerUtil

Public Member Functions

 analyzeByRow (RedBean_OODBBean $rowBean)
 
 sanitizeValue ($value)
 
 shouldSanitizeValue ()
 
- Public Member Functions inherited from SanitizerUtil
 sanitizeValue ($value)
 
 analyzeByRow (RedBean_OODBBean $rowBean)
 
 __construct ($modelClassName, $attributeName, $columnName, array $columnMappingData, ImportSanitizeResultsUtil $importSanitizeResultsUtil=null, $penultimateModelClassName, $penultimateAttributeName, $explicitReadWriteModelPermissions=null)
 
 shouldSanitizeValue ()
 
 getAnalysisMessages ()
 
 getShouldSkipRow ()
 

Static Public Member Functions

static getLinkedMappingRuleType ()
 
static shouldNotSaveModelOnSanitizingValueFailure ()
 
- Static Public Member Functions inherited from SanitizerUtil
static getType ()
 
static getLinkedMappingRuleType ()
 
static shouldNotSaveModelOnSanitizingValueFailure ()
 

Additional Inherited Members

- Protected Member Functions inherited from SanitizerUtil
 init ()
 
 assertMappingRuleDataIsValid ()
 
- Static Protected Member Functions inherited from SanitizerUtil
static resolveMappingRuleData ($columnMappingData)
 
- Protected Attributes inherited from SanitizerUtil
 $modelClassName
 
 $attributeName
 
 $analysisMessages = array()
 
 $shouldSkipRow = false
 
 $columnName
 
 $columnMappingData = array()
 
 $mappingRuleData = array()
 
 $importSanitizeResultsUtil
 
 $penultimateModelClassName
 
 $penultimateAttributeName
 
 $explicitReadWriteModelPermissions = null
 

Detailed Description

Sanitizer for resolving if an attribute is required or not and whether the value is present.

Definition at line 40 of file RequiredSanitizerUtil.php.

Member Function Documentation

static shouldNotSaveModelOnSanitizingValueFailure ( )
static

If a required value is missing or invalid, then skip the entire row during import.

Definition at line 50 of file RequiredSanitizerUtil.php.

analyzeByRow ( RedBean_OODBBean  $rowBean)
Parameters
RedBean_OODBBean$rowBean

Definition at line 58 of file RequiredSanitizerUtil.php.

sanitizeValue (   $value)

Resolves that the value is not null or the value is null and a valid default value is available for the model id. If not, then an InvalidValueToSanitizeException is thrown.

Parameters
mixed$value
Returns
sanitized value
Exceptions
InvalidValueToSanitizeException

Definition at line 85 of file RequiredSanitizerUtil.php.


The documentation for this class was generated from the following file:
Generated on Thu Apr 9 2020 07:11:18