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

Public Member Functions

 sanitizeValue ($value)
 
- Public Member Functions inherited from RequiredSanitizerUtil
 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 Public Member Functions inherited from RequiredSanitizerUtil
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. Override to handle attributes that are relation models specifically.

Definition at line 41 of file ModelIdRequiredSanitizerUtil.php.

Member Function Documentation

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
mixed|sanitized
Exceptions
InvalidValueToSanitizeException
NotSupportedException

Definition at line 56 of file ModelIdRequiredSanitizerUtil.php.


The documentation for this class was generated from the following file:
Generated on Mon Feb 24 2020 07:10:48