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  ) 
Parameters:
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.

Parameters:
mixed $value
Returns:
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]
Returns:
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 Oct 23 07:10:31 2017