ModelIdValueTypeSanitizerUtil Class Reference

Inheritance diagram for ModelIdValueTypeSanitizerUtil:
IdValueTypeSanitizerUtil ExternalSystemIdSuppportedSanitizerUtil SanitizerUtil

Public Member Functions

 sanitizeValue ($value)

Protected Member Functions

 resolveForFoundModel ()

Detailed Description

Sanitizer for attributes that are ids. This would be used if mapping an id for the model that is being imported.

Definition at line 40 of file ModelIdValueTypeSanitizerUtil.php.


Member Function Documentation

sanitizeValue ( value  ) 

Given a value that is either a zurmo id or an external system id, resolve that the value is valid. If the value is not valid then an InvalidValueToSanitizeException is thrown.

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

Reimplemented from SanitizerUtil.

Definition at line 49 of file ModelIdValueTypeSanitizerUtil.php.

resolveForFoundModel (  )  [protected]

No message is needed, because it found the model and will relate to it ok.

Reimplemented from ExternalSystemIdSuppportedSanitizerUtil.

Definition at line 85 of file ModelIdValueTypeSanitizerUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Mar 30 07:10:28 2017