NumberSanitizerUtil Class Reference

Inheritance diagram for NumberSanitizerUtil:

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

mixed $value
sanitized value

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 Wed Nov 20 07:11:16 2019