Static Public Member Functions | |
| static | getSqlAttributeValueDataAnalyzerType () |
| static | getBatchAttributeValueDataAnalyzerType () |
| static | getAcceptableValuesResolvingValues () |
| static | getAcceptableValues () |
| static | getLinkedMappingRuleType () |
| static | sanitizeValue ($modelClassName, $attributeName, $value, $mappingRuleData) |
Sanitizer for boolean type attributes.
Definition at line 30 of file BooleanSanitizerUtil.php.
| static getSqlAttributeValueDataAnalyzerType | ( | ) | [static] |
Reimplemented from SanitizerUtil.
Definition at line 32 of file BooleanSanitizerUtil.php.
| static getBatchAttributeValueDataAnalyzerType | ( | ) | [static] |
Reimplemented from SanitizerUtil.
Definition at line 37 of file BooleanSanitizerUtil.php.
| 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.
Definition at line 50 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.
Definition at line 71 of file BooleanSanitizerUtil.php.
| static getLinkedMappingRuleType | ( | ) | [static] |
Reimplemented from SanitizerUtil.
Definition at line 86 of file BooleanSanitizerUtil.php.
| static sanitizeValue | ( | $ | modelClassName, | |
| $ | attributeName, | |||
| $ | value, | |||
| $ | mappingRuleData | |||
| ) | [static] |
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.
| string | $modelClassName | |
| string | $attributeName | |
| mixed | $value | |
| array | $mappingRuleData |
Reimplemented from SanitizerUtil.
Definition at line 101 of file BooleanSanitizerUtil.php.