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.

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

Reimplemented from SanitizerUtil.

Definition at line 56 of file ModelDerivedIdValueTypeSanitizerUtil.php.

resolveAttributeModelClassName ( RedBeanModel model,
attributeName 
) [protected]

Override since the effective attribute is always 'id'

Parameters:
RedBeanModel $model
string $attributeName
Returns:
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 Fri Nov 24 07:10:27 2017