All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions
FullNameSanitizerUtil Class Reference
Inheritance diagram for FullNameSanitizerUtil:
SanitizerUtil

Public Member Functions

 analyzeByRow (RedBean_OODBBean $rowBean)
 
 sanitizeValue ($value)
 
- 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 shouldNotSaveModelOnSanitizingValueFailure ()
 
- Static Public Member Functions inherited from SanitizerUtil
static getType ()
 
static getLinkedMappingRuleType ()
 
static shouldNotSaveModelOnSanitizingValueFailure ()
 

Protected Member Functions

 assertMappingRuleDataIsValid ()
 
- Protected Member Functions inherited from SanitizerUtil
 init ()
 
 assertMappingRuleDataIsValid ()
 

Additional Inherited Members

- 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 full name attributes.

Definition at line 40 of file FullNameSanitizerUtil.php.

Member Function Documentation

static shouldNotSaveModelOnSanitizingValueFailure ( )
static

If a full name is invalid, then skip the entire row during import.

Definition at line 45 of file FullNameSanitizerUtil.php.

analyzeByRow ( RedBean_OODBBean  $rowBean)
Parameters
RedBean_OODBBean$rowBean

Definition at line 53 of file FullNameSanitizerUtil.php.

sanitizeValue (   $value)

Given a value that is a full name, split the full name into the first and last name parts. Validate that the first and last name are not too large for their attributes. If they are too large or the full name does not valid properly, then an InvalidValueToSanitizeException is thrown.

Parameters
mixed$value
Returns
sanitized value
Exceptions
InvalidValueToSanitizeException

Definition at line 92 of file FullNameSanitizerUtil.php.


The documentation for this class was generated from the following file:
Generated on Fri Jun 5 2020 07:10:48