Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions
BooleanSanitizerUtil Class Reference
Inheritance diagram for BooleanSanitizerUtil:
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 getAcceptableValuesResolvingValues ()
 
static getAcceptableValues ()
 
static getLinkedMappingRuleType ()
 
- 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 boolean type attributes. There is a variety of values that are accepted and converted into the boolean values at import time.

Definition at line 41 of file BooleanSanitizerUtil.php.

Member Function Documentation

static getAcceptableValuesResolvingValues ( )
static

THE KEYS MUST MATCH THE KEYS IN getAcceptableValues() to have the correct mapping This method and getAcceptableValues() to be split because of some type casting issues in php where the keys were getting turned into integers instead of remaining as strings. Lowercase array of mappable boolean values. These values if found in an import, will be converted correctly to false/true. All other values are not valid.

See Also
getAcceptableValues()

Definition at line 51 of file BooleanSanitizerUtil.php.

static getAcceptableValues ( )
static

THE KEYS MUST MATCH THE KEYS IN getAcceptableValuesResolvingValues() to have the correct mapping This method and getAcceptableValuesResolvingValue() needed to be split because of some type casting issues in php where the keys were getting turned into integers instead of remaining as strings.

See Also
getAcceptableValuesResolvingValues()

Definition at line 72 of file BooleanSanitizerUtil.php.

analyzeByRow ( RedBean_OODBBean  $rowBean)
Parameters
RedBean_OODBBean$rowBean

Definition at line 95 of file BooleanSanitizerUtil.php.

sanitizeValue (   $value)

Given a value, attempt to convert the value to either true/false based on a mapping array of possible boolean values. If the value is not present, attemp to utilize the default value specified. If the value presented is not a valid mapping value then a InvalidValueToSanitizeException will be thrown.

Parameters
mixed$value
Returns
sanitized value
Exceptions
InvalidValueToSanitizeException

Definition at line 115 of file BooleanSanitizerUtil.php.


The documentation for this class was generated from the following file:
Generated on Wed Dec 2 2020 07:10:37
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.