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

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 ()

Protected Member Functions

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

Additional Inherited Members

- Static Public Member Functions inherited from SanitizerUtil
static getType ()
static getLinkedMappingRuleType ()
static shouldNotSaveModelOnSanitizingValueFailure ()
- Static Protected Member Functions inherited from SanitizerUtil
static resolveMappingRuleData ($columnMappingData)
- Protected Attributes inherited from SanitizerUtil
 $analysisMessages = array()
 $shouldSkipRow = false
 $columnMappingData = array()
 $mappingRuleData = array()
 $explicitReadWriteModelPermissions = null

Detailed Description

Sanitizer for resolving whether a value is too large based on an attribute's rules.

Definition at line 40 of file TruncateSanitizerUtil.php.

Member Function Documentation

analyzeByRow ( RedBean_OODBBean  $rowBean)

Definition at line 45 of file TruncateSanitizerUtil.php.

sanitizeValue (   $value)

Given a value, resolve that the value not too large for the attribute based on the attribute's type. If the value is too large, then it is truncated.

sanitized value

Definition at line 62 of file TruncateSanitizerUtil.php.

getMaximumLength ( )
int|null minimum length

Definition at line 85 of file TruncateSanitizerUtil.php.

The documentation for this class was generated from the following file:
Generated on Wed Jun 3 2020 07:11:09