NumberSanitizerUtil Class Reference

Inheritance diagram for NumberSanitizerUtil:
SanitizerUtil

Public Member Functions

 analyzeByRow (RedBean_OODBBean $rowBean)
 sanitizeValue ($value)

Static Public Member Functions

static shouldNotSaveModelOnSanitizingValueFailure ()

Protected Member Functions

 resolveType ()

Detailed Description

Sanitizer for attributes that are numbers.

Definition at line 40 of file NumberSanitizerUtil.php.


Member Function Documentation

static shouldNotSaveModelOnSanitizingValueFailure (  )  [static]

If a number value is invalid, then skip the entire row during import.

Reimplemented from SanitizerUtil.

Definition at line 45 of file NumberSanitizerUtil.php.

analyzeByRow ( RedBean_OODBBean $  rowBean  ) 
Parameters:
RedBean_OODBBean $rowBean

Reimplemented from SanitizerUtil.

Definition at line 53 of file NumberSanitizerUtil.php.

sanitizeValue ( value  ) 

Given a value, resolve that the value is a correctly formatted number. If not, an InvalidValueToSanitizeException is thrown.

Parameters:
mixed $value
Returns:
sanitized value
Exceptions:
InvalidValueToSanitizeException 

Reimplemented from SanitizerUtil.

Definition at line 88 of file NumberSanitizerUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Mar 26 07:10:27 2017