TruncateSanitizerUtil Class Reference

Inheritance diagram for TruncateSanitizerUtil:
SanitizerUtil TextAreaTruncateSanitizerUtil

Public Member Functions

 analyzeByRow (RedBean_OODBBean $rowBean)
 sanitizeValue ($value)

Protected Member Functions

 assertMappingRuleDataIsValid ()
 getMaximumLength ()

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  ) 
RedBean_OODBBean $rowBean

Reimplemented from SanitizerUtil.

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.

mixed $value
sanitized value

Reimplemented from SanitizerUtil.

Definition at line 62 of file TruncateSanitizerUtil.php.

assertMappingRuleDataIsValid (  )  [protected]

Override as needed

Reimplemented from SanitizerUtil.

Definition at line 77 of file TruncateSanitizerUtil.php.

getMaximumLength (  )  [protected]
int|null minimum length

Reimplemented in TextAreaTruncateSanitizerUtil.

Definition at line 85 of file TruncateSanitizerUtil.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Nov 18 07:11:05 2019