ContactStateSanitizerUtil Class Reference

Inheritance diagram for ContactStateSanitizerUtil:
SanitizerUtil LeadStateSanitizerUtil

Public Member Functions

 analyzeByRow (RedBean_OODBBean $rowBean)
 sanitizeValue ($value)

Static Public Member Functions

static shouldNotSaveModelOnSanitizingValueFailure ()

Protected Member Functions

 assertMappingRuleDataIsValid ()
 resolveStates ()

Static Protected Member Functions

static resolvesValidStateByOrder ($stateOrder, $startingOrder)

Detailed Description

Sanitizer for handling contact state. These are states that are the starting state or after.

Definition at line 40 of file ContactStateSanitizerUtil.php.

Member Function Documentation

static shouldNotSaveModelOnSanitizingValueFailure (  )  [static]

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

Reimplemented from SanitizerUtil.

Definition at line 45 of file ContactStateSanitizerUtil.php.

analyzeByRow ( RedBean_OODBBean $  rowBean  ) 
RedBean_OODBBean $rowBean

Reimplemented from SanitizerUtil.

Definition at line 53 of file ContactStateSanitizerUtil.php.

sanitizeValue ( value  ) 

Given a contact state id, attempt to get and return a contact state object. If the id is invalid, then an InvalidValueToSanitizeException will be thrown.

mixed $value
sanitized value

Reimplemented from SanitizerUtil.

Definition at line 73 of file ContactStateSanitizerUtil.php.

assertMappingRuleDataIsValid (  )  [protected]

Override as needed

Reimplemented from SanitizerUtil.

Definition at line 121 of file ContactStateSanitizerUtil.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Nov 14 07:10:55 2019