ModelDerivedIdValueTypeSanitizerUtil Class Reference

Inheritance diagram for ModelDerivedIdValueTypeSanitizerUtil:
IdValueTypeSanitizerUtil ExternalSystemIdSuppportedSanitizerUtil SanitizerUtil AccountDerivedIdValueTypeSanitizerUtil ContactDerivedIdValueTypeSanitizerUtil ImportModelTestItem3DerivedIdValueTypeSanitizerUtil OpportunityDerivedIdValueTypeSanitizerUtil

Public Member Functions

 sanitizeValue ($value)

Protected Member Functions

 resolveAttributeModelClassName (RedBeanModel $model, $attributeName)

Static Protected Member Functions

static getDerivedModelClassName ()

Detailed Description

Sanitizer for attributes that are derived model types. This means the specific relation is not on the model, but typically this is a casted down version of the actual relation on the model.

Definition at line 41 of file ModelDerivedIdValueTypeSanitizerUtil.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.

mixed $value
sanitized value

Reimplemented from SanitizerUtil.

Definition at line 56 of file ModelDerivedIdValueTypeSanitizerUtil.php.

resolveAttributeModelClassName ( RedBeanModel model,
) [protected]

Override since the effective attribute is always 'id'

RedBeanModel $model
string $attributeName
string $attributeModelClassName

Reimplemented from ExternalSystemIdSuppportedSanitizerUtil.

Definition at line 106 of file ModelDerivedIdValueTypeSanitizerUtil.php.

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