Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
Static Public Member Functions | Protected Member Functions | Protected Attributes
ExternalSystemIdSuppportedSanitizerUtil Class Reference
Inheritance diagram for ExternalSystemIdSuppportedSanitizerUtil:
SanitizerUtil IdValueTypeSanitizerUtil UserValueTypeSanitizerUtil ModelDerivedIdValueTypeSanitizerUtil ModelIdValueTypeSanitizerUtil RelatedModelNameOrIdValueTypeSanitizerUtil SelfIdValueTypeSanitizerUtil AccountDerivedIdValueTypeSanitizerUtil ContactDerivedIdValueTypeSanitizerUtil ImportModelTestItem3DerivedIdValueTypeSanitizerUtil OpportunityDerivedIdValueTypeSanitizerUtil RoleValueTypeSanitizerUtil

Static Public Member Functions

static getModelByExternalSystemIdAndModelClassName ($id, $modelClassName)
 
- Static Public Member Functions inherited from SanitizerUtil
static getType ()
 
static getLinkedMappingRuleType ()
 
static shouldNotSaveModelOnSanitizingValueFailure ()
 

Protected Member Functions

 resolveFoundIdByValue ($value)
 
 resolveAttributeModelClassName (RedBeanModel $model, $attributeName)
 
 resolveForFoundModel ()
 
 resolveFoundExternalSystemIdByValue ($value)
 
- Protected Member Functions inherited from SanitizerUtil
 init ()
 
 assertMappingRuleDataIsValid ()
 

Protected Attributes

 $externalSystemIdMaxLength = 40
 
 $attributeModelClassName
 
- Protected Attributes inherited from SanitizerUtil
 $modelClassName
 
 $attributeName
 
 $analysisMessages = array()
 
 $shouldSkipRow = false
 
 $columnName
 
 $columnMappingData = array()
 
 $mappingRuleData = array()
 
 $importSanitizeResultsUtil
 
 $penultimateModelClassName
 
 $penultimateAttributeName
 
 $explicitReadWriteModelPermissions = null
 

Additional Inherited Members

- Public Member Functions inherited from SanitizerUtil
 sanitizeValue ($value)
 
 analyzeByRow (RedBean_OODBBean $rowBean)
 
 __construct ($modelClassName, $attributeName, $columnName, array $columnMappingData, ImportSanitizeResultsUtil $importSanitizeResultsUtil=null, $penultimateModelClassName, $penultimateAttributeName, $explicitReadWriteModelPermissions=null)
 
 shouldSanitizeValue ()
 
 getAnalysisMessages ()
 
 getShouldSkipRow ()
 
- Static Protected Member Functions inherited from SanitizerUtil
static resolveMappingRuleData ($columnMappingData)
 

Detailed Description

Sanitizers that support the use of external system ids as possible values should extend this class.

Definition at line 40 of file ExternalSystemIdSuppportedSanitizerUtil.php.

Member Function Documentation

static getModelByExternalSystemIdAndModelClassName (   $id,
  $modelClassName 
)
static

Given an external system id and model class name, try to find the associated model if it exists. If it is not found, a NotFoundException will be thrown. Otherwise the model will be made and returned.

Parameters
string$id
string$modelClassName
Returns
RedBeanModel $model
Exceptions
NotFoundException

Definition at line 62 of file ExternalSystemIdSuppportedSanitizerUtil.php.

resolveFoundIdByValue (   $value)
protected

Tries to find the value in the system. If found, returns true, otherwise false.

Parameters
string$value
Returns
boolean

Definition at line 81 of file ExternalSystemIdSuppportedSanitizerUtil.php.

resolveAttributeModelClassName ( RedBeanModel  $model,
  $attributeName 
)
protected

Given a model and an attribute, return the model class name for the attribute.

Parameters
RedBeanModel$model
string$attributeName
Returns
string $attributeModelClassName

Definition at line 114 of file ExternalSystemIdSuppportedSanitizerUtil.php.

resolveFoundExternalSystemIdByValue (   $value)
protected

Tries to find the value in the system. If found, returns true, otherwise false.

Parameters
string$value
Returns
boolean

Definition at line 135 of file ExternalSystemIdSuppportedSanitizerUtil.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 25 2020 07:10:45
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.